add
This commit is contained in:
parent
b52aa2d12f
commit
91c5fe71af
1 changed files with 22 additions and 0 deletions
22
Command/PreCommit.hs
Normal file
22
Command/PreCommit.hs
Normal file
|
@ -0,0 +1,22 @@
|
|||
{- git-annex command
|
||||
-
|
||||
- Copyright 2010 Joey Hess <joey@kitenet.net>
|
||||
-
|
||||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Command.PreCommit where
|
||||
|
||||
import Command
|
||||
import qualified Command.Fix
|
||||
|
||||
{- Run by git pre-commit hook. -}
|
||||
start :: SubCmdStartString
|
||||
start file = do
|
||||
-- If a file is unlocked for edit, inject its content into the
|
||||
-- annex, and replace it with a symlink to the content. Git will
|
||||
-- then commit that.
|
||||
error "TODO"
|
||||
|
||||
-- fix symlinks
|
||||
Command.Fix.start file
|
Loading…
Reference in a new issue