From ac97fa3781eaa99b354dc0abe4898a7c29a0b08b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 17 Jul 2019 14:10:55 -0400 Subject: [PATCH] Use terminal for :Git fetch/pull/push I consider :Gfetch, etc, the proper interface, but allow this as a backdoor. References https://github.com/tpope/vim-fugitive/issues/1292 --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index bb40eaf..8978668 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2077,7 +2077,8 @@ function! s:GitExec(line1, line2, range, count, bang, mods, reg, args, dir) abor endif let git = s:UserCommandList(a:dir) if s:HasOpt(a:args, ['add', 'checkout', 'commit', 'stage', 'stash', 'reset'], '-p', '--patch') || - \ s:HasOpt(a:args, ['add', 'clean', 'stage'], '-i', '--interactive') + \ s:HasOpt(a:args, ['add', 'clean', 'stage'], '-i', '--interactive') || + \ index(['fetch', 'pull', 'push'], a:args[0]) >= 0 let mods = substitute(s:Mods(a:mods), '\', '-tab', 'g') if has('nvim') if &autowrite || &autowriteall | silent! wall | endif