Disable -- More -- prompt on push/fetch

These commands have slow, potentially verbose output, especially in the
case where pushing triggers a real time deploy.
This commit is contained in:
Tim Pope
2021-08-26 01:40:58 -04:00
parent 5aa8a3489e
commit 4ff2c8ce30

View File

@@ -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