mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 21:14:53 +08:00
Expand diffs on :Gcommit --patch
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user