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 b089a2b7cec496e319e2711aa963fa3227df92f8 (tree)
parent 216c85afe0a3d3b57dc717c098334fd59afeb13e
Author: Tim Pope <code@tpope.net>
Date:   Mon,  9 May 2011 20:00:32 -0400

Fix :Gcommit on csh and Windows

Diffstat:
Mplugin/fugitive.vim | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -728,9 +728,11 @@ function! s:Commit(args) abort endif let command .= s:repo().git_command('commit').' '.a:args if &shell =~# 'csh' - call system('('.command.' > '.outfile.') >& '.errorfile) + call system('(('.command.' > '.outfile.') >& '.errorfile.')') elseif a:args =~# '\%(^\| \)--interactive\>' - call system(command.' 2> '.errorfile) + execute '!'.command.' 2> '.errorfile + elseif shell =~# 'cmd' + silent execute '!'.command.' > '.outfile.' 2> '.errorfile else call system(command.' > '.outfile.' 2> '.errorfile) endif