From c452181975761f8b055b88eb1c98f736323510fd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 23 Feb 2020 00:13:41 -0500 Subject: [PATCH] Remove old :Git! temp buffer behavior Rip the band-aid off now so we can reclaim it for something else sooner rather than later. If you're trying to support both old and new versions of Fugitive, exists('*FugitiveConfigGetAll') will be true on versions where --paginate is supported. In a pinch you can also swap in :Gsplit!, but that's eventually going away too. --- autoload/fugitive.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6903f46..6c932db 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2464,8 +2464,11 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort endif else let pager = fugitive#PagerFor(args, config) + if a:bang && pager isnot# 1 + return 'echoerr ' . string('fugitive: :Git! for temp buffer output has been replaced by :Git --paginate') + endif endif - if a:bang || pager is# 1 + if pager is# 1 if editcmd ==# 'read' return s:ReadExec(a:line1, a:line2, a:range, a:mods, env, args, options) . after else