motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 45e53172007efb4e9ec20aafef5a03fed6a9ab61 (tree)
parent ee2b0ecdb80ec3e8d544e3f2f895275e0f76e292
Author: Tim Pope <code@tpope.net>
Date:   Sat,  5 Jul 2014 18:58:18 -0400

Try harder to avoid -esp on :Gcommit follow-up

Closes #516.

Diffstat:
Mplugin/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1007,9 +1007,10 @@ function! s:Commit(args, ...) abort let error = get(errors,-2,get(errors,-1,'!')) if error =~# 'false''\=\.$' let args = a:args - let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[esp]|--edit|--interactive|patch|--signoff)%($| )','') + let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[esp]|--edit|--interactive|--patch|--signoff)%($| )','') let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-c|--reedit-message|--reuse-message|-F|--file|-m|--message)%(\s+|\=)%(''[^'']*''|"%(\\.|[^"])*"|\\.|\S)*','') let args = s:gsub(args,'%(^| )@<=[%#]%(:\w)*','\=expand(submatch(0))') + let args = s:sub(args, '\ze -- |$', ' --no-edit --no-interactive --no-signoff') let args = '-F '.s:shellesc(msgfile).' '.args if args !~# '\%(^\| \)--cleanup\>' let args = '--cleanup=strip '.args