commit b812cb3bcdd80bd0b9cb491981e86815a5ea5870 (tree)
parent 13fd856db99ab3fa6f99f17886f7e2742d5ba9cc
Author: Tim Pope <code@tpope.net>
Date: Wed, 10 Mar 2010 19:44:38 -0500
Skip duplicate "Signed-off-by" [Wincent Colaiuta]
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -670,7 +670,7 @@ function! s:Commit(args) abort
let error = get(readfile(errorfile,'',1),0,'!')
if error =~# "'false'\\.$"
let args = a:args
- let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-e|--edit|--interactive)%($| )','')
+ let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')
let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-F|--file|-m|--message)%(\s+|\=)%(''[^'']*''|"%(\\.|[^"])*"|\\.|\S)*','')
let args = s:gsub(args,'%(^| )@<=[%#]%(:\w)*','\=expand(submatch(0))')
let args = '-F '.s:shellesc(msgfile).' '.args