diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-18 14:58:56 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-18 14:58:56 -0400 |
commit | b16851705701be534eee93e2ac83b92f38d03874 (patch) | |
tree | 0931ebe2a21c7090b0ea84ec96b86be7b66bb96c /Seek.hs | |
parent | 842ca9c4b684ec21b9e5a99b3742db5f36a1440f (diff) |
Allow --all to be mixed with matching options like --copies and --in (but not --include and --exclude).
Diffstat (limited to 'Seek.hs')
-rw-r--r-- | Seek.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -158,7 +158,10 @@ withKeyOptions keyop fallbackop params = do go a = do unless (null params) $ error "Cannot mix --all or --unused with file names." - map keyop <$> a + matcher <- Limit.getMatcher + map (process matcher) <$> a + process matcher k = ifM (matcher $ MatchingKey k) + ( keyop k , return Nothing) prepFiltered :: (FilePath -> CommandStart) -> Annex [FilePath] -> Annex [CommandStart] prepFiltered a fs = do |