Skip to content
Snippets Groups Projects
Commit 28726d11 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

update commit mode to amend if already in commit mode

ref #109
parent e084e41e
Branches
Tags
No related merge requests found
......@@ -1081,7 +1081,8 @@ function! magit#commit_command(mode)
call <SID>mg_git_commit(a:mode)
else
let section=<SID>mg_get_section()
if ( section == 'commit' )
if ( section == 'commit' &&
\ !(b:magit_current_commit_mode == 'CC' && a:mode == 'CA' ) )
if ( b:magit_current_commit_mode == '' )
echoerr "Error, commit section should not be enabled"
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment