diff options
author | 2011-11-10 23:35:08 -0400 | |
---|---|---|
committer | 2011-11-10 23:45:14 -0400 | |
commit | b327227ba596d4fc5012138d03390c3eb861b808 (patch) | |
tree | 921c3ca6851d1ede45c387d9fd54997dcbf44906 /Seek.hs | |
parent | 4389782628a1cc683ef238e848b6311fc4bd82c3 (diff) |
better limiting of start actions to only run whenAnnexed
Mostly only refactoring, but this does remove one redundant stat of the
symlink by copy.
Diffstat (limited to 'Seek.hs')
-rw-r--r-- | Seek.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,10 +33,10 @@ withAttrFilesInGit attr a params = do files <- seekHelper LsFiles.inRepo params prepFilteredGen a fst $ inRepo $ Git.checkAttr attr files -withNumCopies :: (FilePath -> Maybe Int -> CommandStart) -> CommandSeek +withNumCopies :: (Maybe Int -> FilePath -> CommandStart) -> CommandSeek withNumCopies a params = withAttrFilesInGit "annex.numcopies" go params where - go (file, v) = a file (readMaybe v) + go (file, v) = a (readMaybe v) file withBackendFilesInGit :: (BackendFile -> CommandStart) -> CommandSeek withBackendFilesInGit a params = do |