Cease supporting :Gread!
This commit is contained in:
parent
389efdcf14
commit
2c0574594d
@ -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
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user