diff options
author | 2016-04-19 13:46:11 -0400 | |
---|---|---|
committer | 2016-04-19 13:55:29 -0400 | |
commit | dbfc00e2a6ad99200da35f75f889174cd7bfd195 (patch) | |
tree | 9d8a9d1353ab10376183c1bda881fface04b6fcb /doc/todo/inject_on_import.mdwn | |
parent | 41b7950285ef1e91b80c441c2be68a1ef4d0d27c (diff) |
remove old closed bugs and todo items to speed up wiki updates and reduce size
Remove closed bugs and todos that were last edited or commented before Q3 2015.
Command line used:
for f in $(grep -l '\[\[done\]\]' -- *.mdwn); do d="$(echo "$f" | sed 's/.mdwn$//')"; if [ -z "$(git log --since=09-09-2015 --pretty=oneline -- "$f")" -a -z "$(git log --since=09-09-2015 --pretty=oneline -- "$d")" ]; then git rm -- "$f"; git rm -rf "$d"; fi; done
for f in $(grep -l '|done\]\]' -- *.mdwn); do d="$(echo "$f" | sed 's/.mdwn$//')"; if [ -z "$(git log --since=09-09-2015 --pretty=oneline -- "$f")" -a -z "$(git log --since=09-09-2015 --pretty=oneline -- "$d")" ]; then git rm -- "$f"; git rm -rf "$d"; fi; done
Diffstat (limited to 'doc/todo/inject_on_import.mdwn')
-rw-r--r-- | doc/todo/inject_on_import.mdwn | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/doc/todo/inject_on_import.mdwn b/doc/todo/inject_on_import.mdwn deleted file mode 100644 index d33267987..000000000 --- a/doc/todo/inject_on_import.mdwn +++ /dev/null @@ -1,63 +0,0 @@ -Would it be possible to add an `--inject` option to import? - -Say, for example, I have an annex on computer A which has a subset of files and a directory of files which are potentional duplicates of files in the annex. - -I would like to do something like this: - - mkdir ~/annex/import - cd ~/annex/import - git annex import --deduplicate --inject ~/directory/of/files - -This would do the same as `--deduplicate`, except if the file is not present in the annex, it would be injected. For example: - -Annex knows about A and B, A is present but B is not. -$DIR contains A, B and C. - -A would be deleted from $DIR due to `--deduplicate`. -B would be injected into the repo (making it present) due to `--inject`, then deleted from $DIR. -C would be added to the annex, resulting in this - - $ ls ~/annex/import - C - -> You seem to have described exactly what --deduplicate already does. -> For example: - -<pre> -# mkdir x -# cd x -# l -# git init -Initialized empty Git repository in /home/joey/tmp/x/.git/ -# git annex init -init ok -(Recording state in git...) -# echo hello > foo -# git annex add foo -add foo ok -(Recording state in git...) -# mkdir ../src -# echo hello > ../src/bar -# echo new > ../src/baz -# git annex import --deduplicate ../src -import src/bar (duplicate) ok -import src/baz ok -(Recording state in git...) -# ls -foo@ src/ -# ls ../src/ -# ls src -baz@ -</pre> - -> And, if you look at the documentation for --deduplicate, -> this is what it says: - -<pre> - To only import files whose content has not been seen - before by git-annex, use the --deduplicate option. - Duplicate files will be deleted from the import loca‐ - tion. -</pre> - -> So, [[done]] I suppose... --[[Joey]] |