diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 2c4ee12..2880515 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -105,9 +105,6 @@ that are part of Git repositories). :{range}Gread [revision] |:read| in a |fugitive-revision| after {range}. - *fugitive-:Gread!* -:Gread! [revision] Deprecated synonym for |:Gread|. - *fugitive-:Gwrite* :Gwrite Write to the current file's path and stage the results. When run in a work tree file, it is effectively git diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index b7ea277..7b2e0e7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -876,10 +876,7 @@ function! s:Edit(cmd,...) abort catch /^fugitive:/ return 'echoerr v:errmsg' endtry - if a:cmd =~# 'read!$' || a:cmd ==# 'read' - if a:cmd =~# '!$' - call s:warn(':Gread! is deprecated. Use :Gread') - endif + if a:cmd ==# 'read' return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') else if &previewwindow && getbufvar('','fugitive_type') ==# 'index'