diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-30 14:19:16 -0400 |
commit | 6a5be9d53cad9ee2988c6d54001f387dfe1f2716 (patch) | |
tree | bae7346474d2ae932b856f1d70a0fca187ca6454 /Command/PreCommit.hs | |
parent | 14d59b40fb4f3a4c9a89266fecae91a0daf08088 (diff) |
rename some stuff and prepare to break out more into Command/*
Diffstat (limited to 'Command/PreCommit.hs')
-rw-r--r-- | Command/PreCommit.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Command/PreCommit.hs b/Command/PreCommit.hs index 513d5d43f..8d488514a 100644 --- a/Command/PreCommit.hs +++ b/Command/PreCommit.hs @@ -17,21 +17,21 @@ import qualified Command.Fix {- The pre-commit hook needs to fix symlinks to all files being committed. - And, it needs to inject unlocked files into the annex. -} -seek :: [SubCmdSeek] +seek :: [CommandSeek] seek = [withFilesToBeCommitted Command.Fix.start, withFilesUnlockedToBeCommitted start] -start :: SubCmdStartBackendFile +start :: CommandStartBackendFile start pair = return $ Just $ perform pair -perform :: BackendFile -> SubCmdPerform +perform :: BackendFile -> CommandPerform perform pair@(file, _) = do - ok <- doSubCmd $ Command.Add.start pair + ok <- doCommand $ Command.Add.start pair if ok then return $ Just $ cleanup file else error $ "failed to add " ++ file ++ "; canceling commit" -cleanup :: FilePath -> SubCmdCleanup +cleanup :: FilePath -> CommandCleanup cleanup file = do -- git commit will have staged the file's content; -- drop that and run command queued by Add.state to |