commit a45e2c6d577ca3ec6c10ed82465aa9650316f70c (tree)
parent 5042fd965d25c3ec42ed5d2ae081271c348ee712
Author: Tim Pope <code@tpope.net>
Date: Mon, 2 Sep 2019 19:57:52 -0400
Provide :Gr as alias for :Gread
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -4045,6 +4045,7 @@ call s:command("-bar -bang -nargs=* -complete=customlist,s:ReadComplet
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'split' : 'edit'), <bang>0, '<mods>', <q-args>, [<f-args>])")
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gvsplit execute s:Open((<count> > 0 ? <count> : '').(<count> ? 'vsplit' : 'edit!'), <bang>0, '<mods>', <q-args>, [<f-args>])")
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete -addr=tabs Gtabedit execute s:Open((<count> >= 0 ? <count> : '').'tabedit', <bang>0, '<mods>', <q-args>, [<f-args>])")
+call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gr", "Read")
call s:command("-bar -bang -nargs=* -range=-1 -complete=customlist,s:ReadComplete Gread", "Read")
" Section: :Gwrite, :Gwq
diff --git a/doc/fugitive.txt b/doc/fugitive.txt
@@ -115,7 +115,7 @@ that are part of Git repositories).
:0Gsplit! to suppress the split and open it in the
current window.
- *fugitive-:Gread*
+ *fugitive-:Gr* *fugitive-:Gread*
:Gread [object] Empty the buffer and |:read| a |fugitive-object|.
When the argument is omitted, this is similar to
git-checkout on a work tree file or git-add on a stage
@@ -123,7 +123,7 @@ that are part of Git repositories).
:{range}Gread [object] |:read| in a |fugitive-object| after {range}.
- *fugitive-:Gread!*
+ *fugitive-:Gr!* *fugitive-:Gread!*
:Gread! [args] Empty the buffer and |:read| the output of a Git
command. For example, :Gread! show HEAD:%.