diff options
author | 2012-08-27 14:49:09 -0400 | |
---|---|---|
committer | 2012-08-27 14:49:09 -0400 | |
commit | c1adde5294fe995c2d92f1ac81a2295bbbef62d4 (patch) | |
tree | a50eb6a55220fbdc28abf1af7936d64590364756 /Seek.hs | |
parent | 8660f3043c8968dc231727fe151063197f491a5f (diff) | |
parent | 1cbfd6368c5b82f7559fb1f1da1209ba0c37a793 (diff) |
finally merge the assistant into master
Progress bars still need to be done, otherwise it's fully working.
Although much work remains to hit all the use cases.
Diffstat (limited to 'Seek.hs')
-rw-r--r-- | Seek.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ withFilesUnlocked' typechanged a params = do withKeys :: (Key -> CommandStart) -> CommandSeek withKeys a params = return $ map (a . parse) params where - parse p = fromMaybe (error "bad key") $ readKey p + parse p = fromMaybe (error "bad key") $ file2key p withValue :: Annex v -> (v -> CommandSeek) -> CommandSeek withValue v a params = do @@ -108,9 +108,9 @@ withNothing _ _ = error "This command takes no parameters." prepFiltered :: (FilePath -> CommandStart) -> Annex [FilePath] -> Annex [CommandStart] prepFiltered a fs = do matcher <- Limit.getMatcher - map (proc matcher) <$> fs + map (process matcher) <$> fs where - proc matcher f = do + process matcher f = do ok <- matcher f if ok then a f else return Nothing |