annex.addsmallfiles: New option controlling what is done when adding files not matching annex.largefiles.

This commit is contained in:
Joey Hess 2016-01-28 14:04:32 -04:00
parent c7a89ead3a
commit 7c1df36d63
Failed to extract signature
4 changed files with 19 additions and 1 deletions

View file

@ -49,7 +49,10 @@ seek o = allowConcurrentOutput $ do
matcher <- largeFilesMatcher
let gofile file = ifM (checkFileMatcher matcher file <||> Annex.getState Annex.force)
( start file
, startSmall file
, ifM (annexAddSmallFiles <$> Annex.getGitConfig)
( startSmall file
, stop
)
)
case batchOption o of
Batch -> batchFiles gofile