mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user