added annex.commitmessage
Added annex.commitmessage config that can specify a commit message for the git-annex branch instead of the usual "update". This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
parent
5c3864b326
commit
ae11394efa
14 changed files with 38 additions and 15 deletions
|
@ -301,7 +301,7 @@ commit :: SyncOptions -> CommandStart
|
|||
commit o = stopUnless shouldcommit $ next $ next $ do
|
||||
commitmessage <- maybe commitMsg return (messageOption o)
|
||||
showStart' "commit" Nothing
|
||||
Annex.Branch.commit "update"
|
||||
Annex.Branch.commit =<< Annex.Branch.commitMessage
|
||||
ifM isDirect
|
||||
( do
|
||||
void stageDirect
|
||||
|
@ -544,7 +544,7 @@ pushBranch remote branch g = directpush `after` annexpush `after` syncpush
|
|||
|
||||
commitAnnex :: CommandStart
|
||||
commitAnnex = do
|
||||
Annex.Branch.commit "update"
|
||||
Annex.Branch.commit =<< Annex.Branch.commitMessage
|
||||
stop
|
||||
|
||||
mergeAnnex :: CommandStart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue