summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-03-26 13:43:30 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-03-26 13:43:30 -0400
commit2e34e1855432e5344aed828790d8b0f850d6bc35 (patch)
tree6c7cc6b7a7d1fb3b690a8791234def32b20e28ae
parent2c1daf174c5351ada8142b9ce51e7d781069dfeb (diff)
add a comment
-rw-r--r--Assistant/Threads/Committer.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Assistant/Threads/Committer.hs b/Assistant/Threads/Committer.hs
index 8cf6da2d2..8fecc1c51 100644
--- a/Assistant/Threads/Committer.hs
+++ b/Assistant/Threads/Committer.hs
@@ -285,7 +285,9 @@ handleAdds havelsof delayadd cs = returnWhen (null incomplete) $ do
return $ r ++ added ++ otherchanges
where
(incomplete, otherchanges) = partition (\c -> isPendingAddChange c || isInProcessAddChange c) cs
-
+
+ -- Find files that are actually new, and not unlocked annexed
+ -- files. The ls-files is run on a batch of files.
findnew [] = return ([], noop)
findnew pending@(exemplar:_) = do
(newfiles, cleanup) <- liftAnnex $