import: Avoid checksumming file twice when run in the default or --duplicate mode.

--deduplicate, --skip-duplicates, and --clean-duplicates still checksum the
file twice, the first time to determine if it's a duplicate. This cannot be
easily merged with the checksumming done to add the file, since the file
needs to be locked down before that second checksum is taken.
This commit is contained in:
Joey Hess 2015-02-08 14:43:42 -04:00
parent 102458e8f3
commit 27ad41b355
2 changed files with 17 additions and 20 deletions

2
debian/changelog vendored
View file

@ -10,6 +10,8 @@ git-annex (5.20150206) UNRELEASED; urgency=medium
--smallerthan, --largerthan
* The file matching options are now only accepted by commands that
can actually use them, instead of by all commands.
* import: Avoid checksumming file twice when run in the default
or --duplicate mode.
-- Joey Hess <id@joeyh.name> Fri, 06 Feb 2015 13:57:08 -0400