Expand diffs on :Gcommit --patch
This commit is contained in:
parent
4460aeffdd
commit
3ca888470b
@ -3230,7 +3230,7 @@ function! s:CommitInteractive(line1, line2, range, bang, mods, args, patch) abor
|
|||||||
let status = s:StatusCommand(a:line1, a:line2, a:range, a:line2, a:bang, a:mods, '', '', [])
|
let status = s:StatusCommand(a:line1, a:line2, a:range, a:line2, a:bang, a:mods, '', '', [])
|
||||||
let status = len(status) ? status . '|' : ''
|
let status = len(status) ? status . '|' : ''
|
||||||
if a:patch
|
if a:patch
|
||||||
return status . 'if search("^Unstaged")|exe "+"|endif'
|
return status . 'if search("^Unstaged")|exe "normal >"|exe "+"|endif'
|
||||||
else
|
else
|
||||||
return status . 'if search("^Untracked\\|^Unstaged")|exe "+"|endif'
|
return status . 'if search("^Untracked\\|^Unstaged")|exe "+"|endif'
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user