convert FindRef

This commit is contained in:
Joey Hess 2015-07-10 20:38:11 -04:00
parent 9659052e3f
commit 02f6d9b33a
3 changed files with 11 additions and 12 deletions

View file

@ -7,16 +7,15 @@
module Command.FindRef where
import Common.Annex
import Command
import qualified Command.Find as Find
cmd :: Command
cmd = withOptions nonWorkTreeMatchingOptions $ Find.mkCommand $
cmd = withGlobalOptions nonWorkTreeMatchingOptions $ Find.mkCommand $
command "findref" SectionPlumbing
"lists files in a git ref"
paramRef (withParams seek)
paramRef (seek <$$> Find.optParser)
seek :: CmdParams -> CommandSeek
seek refs = do
format <- Find.getFormat
Find.start format `withFilesInRefs` refs
seek :: Find.FindOptions -> CommandSeek
seek o = Find.start o `withFilesInRefs` Find.findThese o