clarify default values when no path is specified
Much of the code to handle this was unnecessary, as git ls-files is used, and defaults to returning all files of the desired type.
This commit is contained in:
parent
2a67721d51
commit
23686cc63d
5 changed files with 6 additions and 17 deletions
|
@ -18,7 +18,7 @@ command = [Command "find" (paramOptional $ paramRepeating paramPath) seek
|
|||
"lists available files"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
seek = [withDefault "." withFilesInGit start]
|
||||
seek = [withFilesInGit start]
|
||||
|
||||
{- Output a list of files. -}
|
||||
start :: CommandStartString
|
||||
|
|
|
@ -18,7 +18,7 @@ command = [Command "fsck" (paramOptional $ paramRepeating paramPath) seek
|
|||
"check for problems"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
seek = [withAll (withAttrFilesInGit "annex.numcopies") start]
|
||||
seek = [withAttrFilesInGit "annex.numcopies" start]
|
||||
|
||||
{- Checks a file's backend data for problems. -}
|
||||
start :: CommandStartAttrFile
|
||||
|
|
|
@ -25,7 +25,7 @@ command = [Command "uninit" paramPath seek
|
|||
"de-initialize git-annex and clean out repository"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
seek = [withAll withFilesInGit Command.Unannex.start, withNothing start]
|
||||
seek = [withFilesInGit Command.Unannex.start, withNothing start]
|
||||
|
||||
start :: CommandStartNothing
|
||||
start = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue