2 .\" Copyright (c) 2018 Stefan Sperling
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 .Nd git repository browser
29 is an interactive read-only browser for git repositories.
30 This repository format is described in
31 .Xr got-repository 5 .
34 provides global and command-specific options.
35 Global options must preceed the command name, and are as follows:
36 .Bl -tag -width tenletters
38 Display usage information.
45 .It Cm log [ Fl c Ar commit ] [ Fl r Ar repository-path ] [ path ]
46 Display history of a repository.
49 is specified, show only commits which modified this path.
51 This command is also executed if no explicit command is specified.
57 .It Cm Down-arrow, j, Page-down
58 Move the selection cursor down.
59 .It Cm Up-arrow, k, Page-up
60 Move the selection cursor up.
64 view showing file changes made in the currently selected commit.
68 view showing the tree for the currently selected commit.
80 Start traversing history at the specified
82 The expected argument is the name of a branch or a SHA1 hash which corresponds
84 .It Fl r Ar repository-path
85 Use the repository at the specified path.
86 If not specified, assume the repository is located at or above the current
89 .It Cm diff [ Ar repository-path ] Ar object1 Ar object2
90 Display the differences between two objects in the repository.
93 argument is a SHA1 hash which corresponds to the object.
94 Both objects must be of the same type (blobs, trees, or commits).
97 is omitted, use the current working directory.
103 .It Cm Down-arrow, j, Page-down, Space
105 .It Cm Up-arrow, k, Page-up, Backspace
112 .It Cm blame [ Fl c Ar commit ] [ Ar repository-path ] Ar path
113 Display line-by-line history of a file at the specified path.
116 is omitted, assume the repository is located in the current working directory.
122 .It Cm Down-arrow, j, Page-down, Space
123 Move the selection cursor down.
124 .It Cm Up-arrow, k, Page-up, Backspace
125 Move the selection cursor up.
129 view for the currently selected line's commit.
133 view for the version of the file in the currently selected line's commit.
137 view for the version of the file in the currently selected line's commit's
142 view back to the previously blamed commit.
154 Start traversing history at the specified
156 The expected argument is the name of a branch or a SHA1 hash which corresponds
159 .It Cm tree [ Fl c Ar commit ] [ Ar repository-path ]
160 Display the repository tree.
163 is omitted, assume the repository is located in the current working directory.
169 .It Cm Down-arrow, j, Page-down
170 Move the selection cursor down.
171 .It Cm Up-arrow, k, Page-up
172 Move the selection cursor up.
174 Enter the currently selected directory, or switch to the
176 view for the currently selected file.
180 view for the currently selected tree entry.
182 Move back to the parent directory.
184 Show the object IDs for all objects displayed in the
194 Start traversing history at the specified
196 The expected argument is the name of a branch or a SHA1 hash which corresponds
205 .An Stefan Sperling Aq Mt stsp@openbsd.org