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
This commit is contained in:
Tim Pope 2019-07-17 14:10:55 -04:00
parent 6e2310a154
commit ac97fa3781

View File

@ -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\>', '-tab', 'g')
if has('nvim')
if &autowrite || &autowriteall | silent! wall | endif