From d6f17608ddbae06ed5867f58e322a16806fa7248 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 20 Mar 2014 13:21:19 -0400 Subject: [PATCH] Support :Gcommit --patch Closes #452. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 5b029ff..d189864 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -959,7 +959,7 @@ function! s:Commit(args) abort let command .= s:repo().git_command('commit').' '.a:args if &shell =~# 'csh' noautocmd silent execute '!('.command.' > '.outfile.') >& '.errorfile - elseif a:args =~# '\%(^\| \)--interactive\>' + elseif a:args =~# '\%(^\| \)-\%(-interactive\|p\|-patch\)\>' noautocmd execute '!'.command.' 2> '.errorfile else noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile