Cease supporting :Gread!

This commit is contained in:
Tim Pope 2011-02-27 10:47:28 -05:00
parent 389efdcf14
commit 2c0574594d
2 changed files with 1 additions and 7 deletions

View File

@ -105,9 +105,6 @@ that are part of Git repositories).
:{range}Gread [revision] :{range}Gread [revision]
|:read| in a |fugitive-revision| after {range}. |:read| in a |fugitive-revision| after {range}.
*fugitive-:Gread!*
:Gread! [revision] Deprecated synonym for |:Gread|.
*fugitive-:Gwrite* *fugitive-:Gwrite*
:Gwrite Write to the current file's path and stage the results. :Gwrite Write to the current file's path and stage the results.
When run in a work tree file, it is effectively git When run in a work tree file, it is effectively git

View File

@ -876,10 +876,7 @@ function! s:Edit(cmd,...) abort
catch /^fugitive:/ catch /^fugitive:/
return 'echoerr v:errmsg' return 'echoerr v:errmsg'
endtry endtry
if a:cmd =~# 'read!$' || a:cmd ==# 'read' if a:cmd ==# 'read'
if a:cmd =~# '!$'
call s:warn(':Gread! is deprecated. Use :Gread')
endif
return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
else else
if &previewwindow && getbufvar('','fugitive_type') ==# 'index' if &previewwindow && getbufvar('','fugitive_type') ==# 'index'