vcsbrowse

Open relevant pages in GitHub/GitLab/Bitbucket.

usage: vcsbrowse [-h] [--version] [--dry-run] [--browser BROWSER]
                 {auto,commit,log,file,diff,blame} ...

Named Arguments

--version

show program’s version number and exit

--dry-run

Default: False

--browser

Sub-commands:

auto

Open repository root or a PR submission page (if appropriate).

vcsbrowse auto [-h]

commit

Open commit page for a <revision>.

vcsbrowse commit [-h] [<revision>]

Positional Arguments

<revision>

Default: “HEAD”

log

Open log page for a <revision>.

vcsbrowse log [-h] [<revision>]

Positional Arguments

<revision>

file

Open file page.

vcsbrowse file [-h] [--permalink {auto,yes,no}] <file> [<lines>] [<revision>]

Positional Arguments

<file>

File path.

<lines>

A number or a pair of number separated by a hyphen -; e.g., 1 or 1-2.

<revision>

Git commit-ish.

Named Arguments

--permalink

Possible choices: auto, yes, no

Resolve <revision> if yes. Use branch name if no. If auto (default), resolve <revision> if <lines> are specified.

Default: “auto”

diff

Open diff page.

vcsbrowse diff [-h] [<revision1>] [<revision2>]

Positional Arguments

<revision1>
<revision2>

blame

Open blame/annotate page.

vcsbrowse blame [-h] [--permalink {auto,yes,no}] <file> [<lines>] [<revision>]

Positional Arguments

<file>

File path.

<lines>

A number or a pair of number separated by a hyphen -; e.g., 1 or 1-2.

<revision>

Git commit-ish.

Named Arguments

--permalink

Possible choices: auto, yes, no

Resolve <revision> if yes. Use branch name if no. If auto (default), resolve <revision> if <lines> are specified.

Default: “auto”