Handle arbitrary :Gbrowse revision

This commit is contained in:
Tim Pope
2011-02-26 15:40:59 -05:00
parent 95311ab2d9
commit 383b2a43df
2 changed files with 106 additions and 60 deletions

View File

@@ -166,17 +166,12 @@ that are part of Git repositories).
:[range]Gbrowse! Like :Gbrowse, but put the URL on the clipboard rather
than opening it.
:[range]Gbrowse - Like :Gbrowse, but tie the URL to the current HEAD.
This is useful in a work tree file to ensure the link
always goes to the file as it currently stands, rather
than whatever the latest on master is. Note that
when editing a historical file, said link is tied by
default to the commit you're currently browsing. (The
intent is that ultimately, one will be able to specify
any |fugitive-revision| here, but the current
implementation is limited to this one special case.)
:[range]Gbrowse {revision}
Like :Gbrowse, but for a given |fugitive-revision|. A
useful value here is -, which ties the URL to the
latest commit rather than a volatile branch.
[range]Gbrowse [...]@{remote}
:[range]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.