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 git-repository 5 .
34 supports several types of views which display repository data:
37 Displays commits in the repository's history.
38 This view is displayed initially if no
42 Displays changes made in a particular commit.
44 Displays the line-by-line history of a file.
46 Displays the tree corresponding to a particular commit.
50 provides global and command-specific key bindings and options.
51 The global key bindings are:
57 Quit the view which is in focus.
59 Switch focus between views.
61 Toggle fullscreen mode for a split-screen view.
64 Global options must precede the command name, and are as follows:
65 .Bl -tag -width tenletters
67 Display usage information.
74 .It Cm log [ Fl c Ar commit ] [ Fl r Ar repository-path ] [ path ]
75 Display history of a repository.
78 is specified, show only commits which modified this path.
80 This command is also executed if no explicit command is specified.
86 .It Cm Down-arrow, j, Page-down
87 Move the selection cursor down.
88 .It Cm Up-arrow, k, Page-up
89 Move the selection cursor up.
93 view showing file changes made in the currently selected commit.
97 view showing the tree for the currently selected commit.
99 Show log entries for the parent directory of the currently selected path.
107 Start traversing history at the specified
109 The expected argument is the name of a branch or a SHA1 hash which corresponds
111 .It Fl r Ar repository-path
112 Use the repository at the specified path.
113 If not specified, assume the repository is located at or above the current
116 .It Cm diff [ Ar repository-path ] Ar object1 Ar object2
117 Display the differences between two objects in the repository.
120 argument is a SHA1 hash which corresponds to the object.
121 Both objects must be of the same type (blobs, trees, or commits).
124 is omitted, use the current working directory.
130 .It Cm Down-arrow, j, Page-down, Space
132 .It Cm Up-arrow, k, Page-up
135 Reduce the amount of diff context lines.
137 Increase the amount of diff context lines.
139 .It Cm blame [ Fl c Ar commit ] [ Fl r Ar repository-path ] Ar path
140 Display line-by-line history of a file at the specified path.
146 .It Cm Down-arrow, j, Page-down, Space
147 Move the selection cursor down.
148 .It Cm Up-arrow, k, Page-up
149 Move the selection cursor up.
153 view for the currently selected line's commit.
157 view with the version of the file as found in the currently
158 selected line's commit.
162 view with the version of the file as found in the parent commit of the
163 currently selected line's commit.
167 view with the previously blamed commit.
175 Start traversing history at the specified
177 The expected argument is the name of a branch or a SHA1 hash which corresponds
179 .It Fl r Ar repository-path
180 Use the repository at the specified path.
181 If not specified, assume the repository is located at or above the current
184 .It Cm tree [ Fl c Ar commit ] [ Ar repository-path ]
185 Display the repository tree.
188 is omitted, assume the repository is located in the current working directory.
194 .It Cm Down-arrow, j, Page-down
195 Move the selection cursor down.
196 .It Cm Up-arrow, k, Page-up
197 Move the selection cursor up.
199 Enter the currently selected directory, or switch to the
201 view for the currently selected file.
205 view for the currently selected tree entry.
207 Move back to the parent directory.
209 Show object IDs for all objects displayed in the
219 Start traversing history at the specified
221 The expected argument is the name of a branch or a SHA1 hash which corresponds
230 .An Stefan Sperling Aq Mt stsp@openbsd.org