commit - acb4e1d19e58daa7f81698af44c07fe3173da4fa
commit + dfc23429a0b27fedcc5f71299f2083472df4dce7
blob - 7f75a48345e3d059e9439ae651ab97f98016f253
blob + d79284e1499b9086363020eab8ccd8444815bb32
--- got/got.1
+++ got/got.1
.It Cm in
Short alias for
.Cm init .
-.It Cm import [ Fl b Ar branch ] [ Fl m Ar message ] [ Fl r Ar repository-path ] [ Fl I Ar pattern ] directory
+.It Cm import Oo Fl b Ar branch Oc Oo Fl m Ar message Oc Oo Fl r Ar repository-path Oc Oo Fl I Ar pattern Oc Ar directory
Create an initial commit in a repository from the file hierarchy
within the specified
.Ar directory .
.It Cm im
Short alias for
.Cm import .
-.It Cm checkout [ Fl b Ar branch ] [ Fl c Ar commit ] [ Fl p Ar path-prefix ] repository-path [ work-tree-path ]
+.It Cm checkout Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Oo Fl p Ar path-prefix Oc Ar repository-path Op Ar work-tree-path
Copy files from a repository into a new work tree.
If the
.Ar work tree path
.It Cm co
Short alias for
.Cm checkout .
-.It Cm update [ Fl b Ar branch ] [ Fl c Ar commit ] [ Ar path ... ]
+.It Cm update Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Op Ar path ...
Update an existing work tree to a different commit.
Show the status of each affected file, using the following status codes:
.Bl -column YXZ description
.It Cm up
Short alias for
.Cm update .
-.It Cm status [ Ar path ... ]
+.It Cm status Op Ar path ...
Show the current modification status of files in a work tree,
using the following status codes:
.Bl -column YXZ description
.It Cm st
Short alias for
.Cm status .
-.It Cm log [ Fl c Ar commit ] [ Fl C Ar number ] [ Fl f ] [ Fl l Ar N ] [ Fl p ] [ Fl r Ar repository-path ] [ path ]
+.It Cm log Oo Fl c Ar commit Oc Oo Fl C Ar number Oc Oo Fl f Oc Oo Fl l Ar N Oc Oo Fl p Oc Oo Fl r Ar repository-path Oc Op Ar path
Display history of a repository.
If a
.Ar path
.Nm
work tree, use the repository path associated with this work tree.
.El
-.It Cm diff [ Fl C Ar number ] [ Fl r Ar repository-path ] [ Fl s ] [ Ar object1 Ar object2 | Ar path ]
+.It Cm diff Oo Fl C Ar number Oc Oo Fl r Ar repository-path Oc Oo Fl s Oc Op Ar object1 Ar object2 | Ar path
When invoked within a work tree with less than two arguments, display
uncommitted changes in the work tree.
If a
.It Cm di
Short alias for
.Cm diff .
-.It Cm blame [ Fl c Ar commit ] [ Fl r Ar repository-path ] Ar path
+.It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
Display line-by-line history of a file at the specified path.
.Pp
The options for
.It Cm bl
Short alias for
.Cm blame .
-.It Cm tree [ Fl c Ar commit ] [ Fl r Ar repository-path ] [ Fl i ] [ Fl R] [ Ar path ]
+.It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Oo Fl i Oc Oo Fl R Oc Op Ar path
Display a listing of files and directories at the specified
directory path in the repository.
Entries shown in this listing may carry one of the following trailing
.It Cm tr
Short alias for
.Cm tree .
-.It Cm ref [ Fl r Ar repository-path ] [ Fl l ] [ Fl d Ar name ] [ Ar name Ar target ]
+.It Cm ref Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl d Ar name Oc Op Ar name Ar target
Manage references in a repository.
.Pp
If no options are passed, expect two arguments and attempt to create,
.It Fl d Ar name
Delete the reference with the specified name from the repository.
.El
-.It Cm branch [ Fl r Ar repository-path ] [ Fl l ] [ Fl d Ar name ] [ Ar name [ Ar base-branch ] ]
+.It Cm branch Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl d Ar name Oc Op Ar name Op Ar base-branch
Manage branches in a repository.
.Pp
Branches are managed via references which live in the
.It Cm rm
Short alias for
.Cm remove .
-.It Cm revert [ Fl p ] [ Fl F Ar response-script ] [ Fl R ] Ar path ...
+.It Cm revert Oo Fl p Oc Oo Fl F Ar response-script Oc Oo Fl R Oc Ar path ...
Revert any uncommited changes in files at the specified paths.
File contents will be overwritten with those contained in the
work tree's base commit. There is no way to bring discarded
.It Cm rv
Short alias for
.Cm revert .
-.It Cm commit [ Fl m Ar message ] [ path ... ]
+.It Cm commit Oo Fl m Ar message Oc Op Ar path ...
Create a new commit in the repository from changes in a work tree
and use this commit as the new base commit for the work tree.
If no
.It Cm bo
Short alias for
.Cm backout .
-.It Cm rebase [ Fl a ] [ Fl c] [ Ar branch ]
+.It Cm rebase Oo Fl a Oc Oo Fl c Oc Op Ar branch
Rebase commits on the specified
.Ar branch
onto the tip of the current branch of the work tree.
.It Cm rb
Short alias for
.Cm rebase .
-.It Cm histedit [ Fl a ] [ Fl c] [ Fl F Ar histedit-script ]
+.It Cm histedit Oo Fl a Oc Oo Fl c Oc Op Fl F Ar histedit-script
Edit commit history between the work tree's current base commit and
the tip commit of the work tree's current branch.
.Pp
.It Cm he
Short alias for
.Cm histedit .
-.It Cm stage [ Fl l ] [ Fl p ] [ Fl F Ar response-script ] [ Ar path ... ]
+.It Cm stage Oo Fl l Oc Oo Fl p Oc Oo Fl F Ar response-script Oc Op Ar path ...
Stage local changes for inclusion in the next commit.
If no
.Ar path
.It Cm sg
Short alias for
.Cm stage .
-.It Cm unstage [ Fl p ] [ Fl F Ar response-script ] [ Ar path ... ]
+.It Cm unstage Oo Fl p Oc Oo Fl F Ar response-script Oc Op Ar path ...
Merge staged changes back into the work tree and put affected paths
back into non-staged status.
If no
blob - 58fcec1667517b8e665f0a2c7dc68325ad578cbe
blob + 701d0e9f0876b10269a09fbd8d963c4c79978dd5
--- tog/tog.1
+++ tog/tog.1
.Nm
are as follows:
.Bl -tag -width blame
-.It Cm log [ Fl c Ar commit ] [ Fl r Ar repository-path ] [ path ]
+.It Cm log Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
Display history of a repository.
If a
.Ar path
If not specified, assume the repository is located at or above the current
working directory.
.El
-.It Cm diff [ Ar repository-path ] Ar object1 Ar object2
+.It Cm diff Oo Ar repository-path Oc Ar object1 object2
Display the differences between two objects in the repository.
Each
.Ar object
Scroll down one page.
.It Cm Page-up, Ctrl+b
Scroll up one page.
-.It Cm [
+.It Cm \&[
Reduce the amount of diff context lines.
-.It Cm ]
+.It Cm \&]
Increase the amount of diff context lines.
.It Cm <, Comma
If the diff view was opened via the log view, move to the previous (younger)
.It Cm >, Full stop
If the diff view was opened via the log view, move to the next (older) commit.
.El
-.It Cm blame [ Fl c Ar commit ] [ Fl r Ar repository-path ] Ar path
+.It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
Display line-by-line history of a file at the specified path.
.Pp
The key bindings for
If not specified, assume the repository is located at or above the current
working directory.
.El
-.It Cm tree [ Fl c Ar commit ] [ Ar repository-path ]
+.It Cm tree Oo Fl c Ar commit Oc Op Ar repository-path
Display the repository tree.
If the
.Ar repository path