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 ac97fa3781eaa99b354dc0abe4898a7c29a0b08b (tree)
parent 6e2310a15437c1454cbf5455cf39d33a88b57621
Author: Tim Pope <code@tpope.net>
Date:   Wed, 17 Jul 2019 14:10:55 -0400

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

Diffstat:
Mautoload/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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