2014-04-17 22:41:24 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2014 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.FindRef where
|
|
|
|
|
|
|
|
import Command
|
|
|
|
import qualified Command.Find as Find
|
|
|
|
|
2014-10-14 18:20:10 +00:00
|
|
|
cmd :: [Command]
|
|
|
|
cmd = [Find.mkCommand $ command "findref" paramRef seek SectionPlumbing
|
2014-04-17 22:41:24 +00:00
|
|
|
"lists files in a git ref"]
|
|
|
|
|
|
|
|
seek :: CommandSeek
|
|
|
|
seek refs = do
|
|
|
|
format <- Find.getFormat
|
|
|
|
Find.start format `withFilesInRefs` refs
|