close
This commit is contained in:
parent
bc633954e4
commit
d27c1b4688
1 changed files with 42 additions and 0 deletions
|
@ -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]]
|
||||
|
|
Loading…
Add table
Reference in a new issue