add --no-commit option
This commit is contained in:
parent
b3e5590fb2
commit
be5b1defeb
4 changed files with 32 additions and 13 deletions
3
Core.hs
3
Core.hs
|
@ -24,8 +24,9 @@ startup flags = do
|
|||
shutdown :: Annex ()
|
||||
shutdown = do
|
||||
g <- Annex.gitRepo
|
||||
nocommit <- Annex.flagIsSet NoCommit
|
||||
needcommit <- Annex.flagIsSet NeedCommit
|
||||
if (needcommit)
|
||||
if (needcommit && not nocommit)
|
||||
then liftIO $ Git.run g ["commit", "-q", "-m",
|
||||
"git-annex log update", gitStateDir g]
|
||||
else return ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue