support v6 unlocked files

This optimisation was not necessary, and didn't work for v6 unlocked files.
Typically only a small number of files will be changed by a commit, so just
catKey them all.
This commit is contained in:
Joey Hess 2015-12-26 15:04:26 -04:00
parent 0fe43d7f8e
commit 289a3592c3
Failed to extract signature

View file

@ -399,11 +399,7 @@ withViewChanges addmeta removemeta = do
handleadds makeabs item
| DiffTree.dstsha item /= nullSha =
handlechange item addmeta
=<< ifM isDirect
( catKey (DiffTree.dstsha item)
-- optimisation
, isAnnexLink $ makeabs $ DiffTree.file item
)
=<< catKey (DiffTree.dstsha item)
| otherwise = noop
handlechange item a = maybe noop
(void . commandAction . a (getTopFilePath $ DiffTree.file item))