diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-01-05 16:51:05 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-01-05 16:51:05 -0400 |
commit | 54495857accfd35b28a089187cfc3df7bb28ea6b (patch) | |
tree | 9a7916301dc22ff82645a11e17e126df416b0f4c /doc/todo/inject_on_import.mdwn | |
parent | e746d02f912a9cf853a9030461e1fcde53001ee7 (diff) |
close
Diffstat (limited to 'doc/todo/inject_on_import.mdwn')
-rw-r--r-- | doc/todo/inject_on_import.mdwn | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/todo/inject_on_import.mdwn b/doc/todo/inject_on_import.mdwn index a4f4b1e1e..d33267987 100644 --- a/doc/todo/inject_on_import.mdwn +++ b/doc/todo/inject_on_import.mdwn @@ -19,3 +19,45 @@ 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]] |