Remove last vestiges of :Gread!

This commit is contained in:
Tim Pope
2022-06-12 16:06:35 -04:00
parent 8c63ac0f2f
commit 0680c3ae3c
3 changed files with 5 additions and 18 deletions

View File

@@ -6090,9 +6090,6 @@ endfunction
function! fugitive#ReadCommand(line1, count, range, bang, mods, arg, ...) abort
exe s:VersionCheck()
if a:bang
return 'echoerr ' . string(':Gread! for temp buffer output has been replaced by :{range}Git! --paginate')
endif
let [read, post] = s:ReadPrepare(a:line1, a:count, a:range, a:mods)
try
let [file, pre] = s:OpenParse(a:arg, 0)
@@ -6114,11 +6111,7 @@ function! fugitive#EditComplete(A, L, P) abort
endfunction
function! fugitive#ReadComplete(A, L, P) abort
if a:L =~# '^\w\+!'
return fugitive#Complete(a:A, a:L, a:P)
else
return fugitive#EditComplete(a:A, a:L, a:P)
endif
return fugitive#EditComplete(a:A, a:L, a:P)
endfunction
" Section: :Gwrite, :Gwq