better fsck file handling
This commit is contained in:
parent
7293ba2940
commit
19ee56559a
3 changed files with 9 additions and 12 deletions
|
@ -16,20 +16,14 @@ import Messages
|
|||
import qualified Command.FsckFile
|
||||
|
||||
seek :: [SubCmdSeek]
|
||||
seek = [withString start, withAll withFilesInGit Command.FsckFile.start]
|
||||
seek = [withNothing start, withAll withFilesInGit Command.FsckFile.start]
|
||||
|
||||
{- Checks the whole annex for problems, only if specific files were not
|
||||
- specified. -}
|
||||
start :: SubCmdStartString
|
||||
start whatspecified = do
|
||||
if (null whatspecified)
|
||||
then do
|
||||
showStart "fsck" ""
|
||||
return $ Just perform
|
||||
else do
|
||||
showStart "fsck" ""
|
||||
showNote "only checking specified files"
|
||||
return $ Just $ return $ Just $ return True
|
||||
start :: SubCmdStartNothing
|
||||
start = do
|
||||
showStart "fsck" ""
|
||||
return $ Just perform
|
||||
|
||||
perform :: SubCmdPerform
|
||||
perform = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue