convert FindRef
This commit is contained in:
parent
9659052e3f
commit
02f6d9b33a
3 changed files with 11 additions and 12 deletions
|
@ -48,14 +48,14 @@ parseFormatOption =
|
|||
)
|
||||
|
||||
seek :: FindOptions -> CommandSeek
|
||||
seek o = withFilesInGit (whenAnnexed $ start (formatOption o)) (findThese o)
|
||||
seek o = withFilesInGit (whenAnnexed $ start o) (findThese o)
|
||||
|
||||
start :: Maybe Utility.Format.Format -> FilePath -> Key -> CommandStart
|
||||
start format file key = do
|
||||
start :: FindOptions -> FilePath -> Key -> CommandStart
|
||||
start o file key = do
|
||||
-- only files inAnnex are shown, unless the user has requested
|
||||
-- others via a limit
|
||||
whenM (limited <||> inAnnex key) $
|
||||
showFormatted format file $ ("file", file) : keyVars key
|
||||
showFormatted (formatOption o) file $ ("file", file) : keyVars key
|
||||
stop
|
||||
|
||||
showFormatted :: Maybe Utility.Format.Format -> String -> [(String, String)] -> Annex ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue