diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-13 16:15:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-13 16:15:45 -0400 |
commit | 19ee56559a191e0e794380363a1bd0b0c57ea22a (patch) | |
tree | 3d8ddcd8ea26bbaf7bd7790d2642d9f4905d05fb /Command | |
parent | 7293ba2940dc7dcefa7376667fa4462b21e05ee0 (diff) |
better fsck file handling
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Fsck.hs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs index 85a26a89b..5b731a696 100644 --- a/Command/Fsck.hs +++ b/Command/Fsck.hs @@ -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 |