summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-26 15:04:26 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-26 15:04:26 -0400
commita0f87e2958c26d4c9c3bb3073fce527c22ea5fe6 (patch)
treef2318b5f422325766e4af86bc662817f3a0676c3
parent056fc2a5bef26f22503aa24084b6827a7e494f37 (diff)
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.
-rw-r--r--Annex/View.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Annex/View.hs b/Annex/View.hs
index 00639a2c4..35f62ec96 100644
--- a/Annex/View.hs
+++ b/Annex/View.hs
@@ -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))