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 4ff2c8ce3080bdd5c576bc035bba881fb3d69a32 (tree)
parent 5aa8a3489eb02e4a4c9e572a5f86c8f42eb78d44
Author: Tim Pope <code@tpope.net>
Date:   Thu, 26 Aug 2021 01:40:58 -0400

Disable -- More -- prompt on push/fetch

These commands have slow, potentially verbose output, especially in the
case where pushing triggers a real time deploy.

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

diff --git 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