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.
This commit is contained in:
Tim Pope
2020-02-23 00:13:41 -05:00
parent 430253c302
commit c452181975

View File

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