findref: New command, like find but shows files in a specified git ref.

This commit is contained in:
Joey Hess 2014-04-17 18:41:24 -04:00
parent e880d0d22c
commit ecc3dc8433
7 changed files with 53 additions and 2 deletions

View file

@ -19,8 +19,10 @@ import Utility.DataUnits
import Types.Key
def :: [Command]
def = [noCommit $ noMessages $ withOptions [formatOption, print0Option, jsonOption] $
command "find" paramPaths seek SectionQuery "lists available files"]
def = [mkCommand $ command "find" paramPaths seek SectionQuery "lists available files"]
mkCommand :: Command -> Command
mkCommand = noCommit . noMessages . withOptions [formatOption, print0Option, jsonOption]
formatOption :: Option
formatOption = fieldOption [] "format" paramFormat "control format of output"