From b64c426fd2c7f55b204e19426c4b18dc112fdd33 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 Aug 2021 10:21:17 -0400 Subject: [PATCH] Try :Git for default dispatch in status buffer The downside of this approach is it has a different interaction model than the quickfix list. The upside is that it's more or less what I actually want. To those finding this wondering why it's now synchronous, you can make it asynchronous by pressing CTRL-D. --- autoload/fugitive.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 97ad8b3..a496547 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2689,7 +2689,9 @@ function! fugitive#BufReadStatus() abort if &bufhidden ==# '' setlocal bufhidden=delete endif - let b:dispatch = '-dir=' . s:fnameescape(len(s:Tree()) ? s:Tree() : s:GitDir()) . ' ' . s:GitShellCmd() . ' fetch --all' + if !exists('b:dispatch') + let b:dispatch = ':Git fetch --all' + endif call fugitive#MapJumps() call s:Map('n', '-', ":execute Do('Toggle',0)", '') call s:Map('x', '-', ":execute Do('Toggle',1)", '')