From 4ff2c8ce3080bdd5c576bc035bba881fb3d69a32 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 Aug 2021 01:40:58 -0400 Subject: [PATCH] Disable -- More -- prompt on push/fetch These commands have slow, potentially verbose output, especially in the case where pushing triggers a real time deploy. --- autoload/fugitive.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index ec819b6..9676369 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3492,7 +3492,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort let args = s:AskPassArgs(dir) + args endif let tmp = { - \ 'no_more': no_pager, + \ 'no_more': no_pager || get(overrides, 'no_more'), \ 'line_count': 0, \ 'err': '', \ 'out': '', @@ -5980,6 +5980,14 @@ function! fugitive#FetchComplete(A, L, P, ...) abort return s:CompleteSub('fetch', a:A, a:L, a:P, function('s:CompleteRemote'), a:000) endfunction +function! s:PushSubcommand(...) abort + return {'no_more': 1} +endfunction + +function! s:FetchSubcommand(...) abort + return {'no_more': 1} +endfunction + " Section: :Gdiff augroup fugitive_diff