From 2c0574594d4a28add69bb476c421514bfb0e9907 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 27 Feb 2011 10:47:28 -0500 Subject: [PATCH] Cease supporting :Gread! --- doc/fugitive.txt | 3 --- plugin/fugitive.vim | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) 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'