import --reinject-duplicates

This is the same as running git annex reinject --known, followed by
git-annex import. The advantage to having it in one command is that it
only has to hash each file once; the two commands have to
hash the imported files a second time.

This commit was sponsored by Shane-o on Patreon.
This commit is contained in:
Joey Hess 2017-02-09 15:40:44 -04:00
parent eae186e4b9
commit c1ece47ea0
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
5 changed files with 50 additions and 19 deletions

View file

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2017-02-09T19:33:46Z"
content="""
Actually, import --deduplicate, --skip-duplicates, --clean-duplicates
are implemeted naively and do hash files twice. So it's
the same efficiency..
But, I just finished a more complicated implementation that avoids
the second hashing.
That does make the combined action worth adding, I suppose. Done so as
--reinject-duplicates.
"""]]