From 4d684256baa07f14800f277a892396ef325c8702 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Aug 2018 17:20:49 -0400 Subject: [PATCH] Update :Gbrowse docs --- doc/fugitive.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index ce55e4d..528cf1a 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -246,18 +246,17 @@ that are part of Git repositories). supported by installing rhubarb.vim, available at . -:Gbrowse {object} Like :Gbrowse, but for a given |fugitive-object|. A - useful value here is -, which ties the URL to the - latest commit rather than a volatile branch. +:Gbrowse {object} Like :Gbrowse, but for a given |fugitive-object|. :Gbrowse [...]@{remote} Force using the given remote rather than the remote for the current branch. The remote is used to - determine which GitHub repository to link to. + determine which upstream repository to link to. :{range}Gbrowse [args] Appends an anchor to the URL that emphasizes the - selected lines. You almost certainly want to give a - "-" argument in this case to force the URL to include - an exact commit. + selected lines. This also forces the URL to include a + commit rather than a branch name so it remains valid + if the file changes. You can give a range of "0" to + force this behavior without including an anchor. :[range]Gbrowse! [args] Like :Gbrowse, but put the URL on the clipboard rather than opening it.