diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-11 18:54:52 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-11 18:54:52 -0400 |
commit | da0de293d16ace6aac574d0cdc37ec41715b7d66 (patch) | |
tree | 4ebabdd2e3afa95127441909c8a423eecda7d81c /Command/PreCommit.hs | |
parent | 5357d3a37af9e3d3a0aec207a8ba7fb94bfea953 (diff) |
refactor param seeking
Diffstat (limited to 'Command/PreCommit.hs')
-rw-r--r-- | Command/PreCommit.hs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Command/PreCommit.hs b/Command/PreCommit.hs index b3b940cdd..a15510bd9 100644 --- a/Command/PreCommit.hs +++ b/Command/PreCommit.hs @@ -14,9 +14,14 @@ import qualified Annex import qualified Backend import qualified GitRepo as Git import qualified Command.Add +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 = [withFilesToBeCommitted Command.Fix.start, + withUnlockedFilesToBeCommitted start] -{- Run by git pre-commit hook; passed unlocked files that are being - - committed. -} start :: SubCmdStartString start file = return $ Just $ perform file |