2 030916b5 2018-07-12 stsp .\" Copyright (c) 2018 Stefan Sperling
4 030916b5 2018-07-12 stsp .\" Permission to use, copy, modify, and distribute this software for any
5 030916b5 2018-07-12 stsp .\" purpose with or without fee is hereby granted, provided that the above
6 030916b5 2018-07-12 stsp .\" copyright notice and this permission notice appear in all copies.
8 030916b5 2018-07-12 stsp .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 030916b5 2018-07-12 stsp .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 030916b5 2018-07-12 stsp .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 030916b5 2018-07-12 stsp .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 030916b5 2018-07-12 stsp .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 030916b5 2018-07-12 stsp .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 030916b5 2018-07-12 stsp .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 030916b5 2018-07-12 stsp .Dd $Mdocdate$
21 aee2a8bd 2019-08-05 stsp .Nd Git repository browser
22 030916b5 2018-07-12 stsp .Sh SYNOPSIS
24 ee85c5e8 2020-02-29 stsp .Op Ar command
26 030916b5 2018-07-12 stsp .Op Ar arg ...
30 030916b5 2018-07-12 stsp .Sh DESCRIPTION
32 aee2a8bd 2019-08-05 stsp is an interactive read-only browser for Git repositories.
33 030916b5 2018-07-12 stsp This repository format is described in
34 5e5560e1 2018-08-01 stsp .Xr git-repository 5 .
37 0cf4efb1 2018-09-29 stsp supports several types of views which display repository data:
38 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
39 9419758a 2019-03-27 stsp .It Log view
40 87aa0e98 2018-08-18 stsp Displays commits in the repository's history.
41 87aa0e98 2018-08-18 stsp This view is displayed initially if no
43 ee85c5e8 2020-02-29 stsp is specified, or if just a
45 87aa0e98 2018-08-18 stsp is specified.
46 9419758a 2019-03-27 stsp .It Diff view
47 87aa0e98 2018-08-18 stsp Displays changes made in a particular commit.
48 9419758a 2019-03-27 stsp .It Blame view
49 87aa0e98 2018-08-18 stsp Displays the line-by-line history of a file.
50 9419758a 2019-03-27 stsp .It Tree view
51 87aa0e98 2018-08-18 stsp Displays the tree corresponding to a particular commit.
52 38cb327b 2020-11-24 stsp .It Ref view
53 38cb327b 2020-11-24 stsp Displays references in the repository.
57 87aa0e98 2018-08-18 stsp provides global and command-specific key bindings and options.
58 87aa0e98 2018-08-18 stsp The global key bindings are:
59 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
64 87aa0e98 2018-08-18 stsp Quit the view which is in focus.
66 c0d30c23 2018-10-07 stsp Switch focus between views.
68 c0d30c23 2018-10-07 stsp Toggle fullscreen mode for a split-screen view.
70 e9b3576f 2019-03-27 stsp will automatically use split-screen views if the size of the terminal
71 e9b3576f 2019-03-27 stsp window is sufficiently large.
74 87aa0e98 2018-08-18 stsp Global options must precede the command name, and are as follows:
75 030916b5 2018-07-12 stsp .Bl -tag -width tenletters
77 030916b5 2018-07-12 stsp Display usage information.
78 1795b260 2021-04-02 kn .It Fl V , -version
79 53ccebc2 2019-07-30 stsp Display program version and exit immediately.
82 030916b5 2018-07-12 stsp The commands for
84 030916b5 2018-07-12 stsp are as follows:
85 030916b5 2018-07-12 stsp .Bl -tag -width blame
86 b672a97a 2020-01-27 stsp .It Cm log Oo Fl b Oc Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
87 030916b5 2018-07-12 stsp Display history of a repository.
90 ecb28ae0 2018-07-16 stsp is specified, show only commits which modified this path.
91 dc990cbf 2020-02-22 stsp If invoked in a work tree, the
93 dc990cbf 2020-02-22 stsp is interpreted relative to the current working directory,
94 dc990cbf 2020-02-22 stsp and the work tree's path prefix is implicitly prepended.
95 dc990cbf 2020-02-22 stsp Otherwise, the path is interpreted relative to the repository root.
97 030916b5 2018-07-12 stsp This command is also executed if no explicit command is specified.
99 030916b5 2018-07-12 stsp The key bindings for
100 030916b5 2018-07-12 stsp .Cm tog log
101 030916b5 2018-07-12 stsp are as follows:
102 030916b5 2018-07-12 stsp .Bl -tag -width Ds
103 f7140bf5 2021-10-17 thomas .It Cm Down-arrow, j, >, Full stop, Ctrl-n
104 030916b5 2018-07-12 stsp Move the selection cursor down.
105 f7140bf5 2021-10-17 thomas .It Cm Up-arrow, k, <, Comma, Ctrl-p
106 030916b5 2018-07-12 stsp Move the selection cursor up.
107 05171be4 2022-06-23 thomas .It Cm Right-arrow, l
108 d74d8993 2022-06-23 thomas Scroll log message field to the right.
109 d74d8993 2022-06-23 thomas Log message moves left on the screen.
110 05171be4 2022-06-23 thomas .It Cm Left-arrow, h
111 d74d8993 2022-06-23 thomas Scroll log message field to the left.
112 d74d8993 2022-06-23 thomas Log message moves right on the screen.
114 05171be4 2022-06-23 thomas Scroll log message field to the rightmost position.
116 05171be4 2022-06-23 thomas Scroll log message field to the leftmost position.
117 70f17a53 2022-06-13 thomas .It Cm Page-down, Ctrl+f
118 a60a9dc4 2019-05-13 jcs Move the selection cursor down one page.
119 70f17a53 2022-06-13 thomas .It Cm Page-up, Ctrl+b
120 a60a9dc4 2019-05-13 jcs Move the selection cursor up one page.
121 23427b14 2022-06-23 thomas .It Cm Ctrl+d, d
122 70f17a53 2022-06-13 thomas Move the selection cursor down one half page.
123 23427b14 2022-06-23 thomas .It Cm Ctrl+u, u
124 70f17a53 2022-06-13 thomas Move the selection cursor up one half page.
125 27890b18 2021-08-30 stsp .It Cm Home, g
126 912a3f79 2021-08-30 j Move the cursor to the newest commit.
128 912a3f79 2021-08-30 j Move the cursor to the oldest commit.
129 1dd93b2a 2021-08-30 stsp This will traverse all commits on the current branch which may take
130 1dd93b2a 2021-08-30 stsp a long time depending on the number of commits in branch history.
131 4b06140e 2022-03-22 thomas If needed, this operation can be cancelled with
132 9ebbe6e1 2021-08-30 stsp .Cm Backspace .
133 e350feed 2019-05-12 stsp .It Cm Enter, Space
136 030916b5 2018-07-12 stsp view showing file changes made in the currently selected commit.
140 030916b5 2018-07-12 stsp view showing the tree for the currently selected commit.
141 5036bf37 2018-09-24 stsp .It Cm Backspace
142 26f0cb24 2021-08-30 j Show log entries for the parent directory of the currently selected path.
143 26f0cb24 2021-08-30 j However when an active search is in progress or when additional commits
145 678cbce5 2019-07-28 stsp .Cm Backspace
146 26f0cb24 2021-08-30 j aborts the running operation.
148 60493ae3 2019-06-20 stsp Prompt for a search pattern and start searching for matching commits.
149 60493ae3 2019-06-20 stsp The search pattern is an extended regular expression which is matched
150 df0b3d8a 2019-06-28 stsp against a commit's author name, committer name, log message, and
151 df0b3d8a 2019-06-28 stsp commit ID SHA1 hash.
152 e6c76b79 2019-06-21 stsp Regular expression syntax is documented in
153 e6c76b79 2019-06-21 stsp .Xr re_format 7 .
155 60493ae3 2019-06-20 stsp Find the next commit which matches the current search pattern.
156 678cbce5 2019-07-28 stsp Searching continues until either a match is found or the
157 678cbce5 2019-07-28 stsp .Cm Backspace
158 678cbce5 2019-07-28 stsp key is pressed.
160 b1bf1435 2019-06-21 stsp Find the previous commit which matches the current search pattern.
161 678cbce5 2019-07-28 stsp Searching continues until either a match is found or the
162 678cbce5 2019-07-28 stsp .Cm Backspace
163 678cbce5 2019-07-28 stsp key is pressed.
164 bf0668dd 2019-06-26 stsp .It Cm Ctrl+l
167 01ca22b1 2020-12-07 stsp view with new commits found in the repository.
171 01ca22b1 2020-12-07 stsp view and toggle display of merged commits.
174 b672a97a 2020-01-27 stsp option determines whether merged commits are displayed initially.
178 38cb327b 2020-11-24 stsp view listing all references in the repository.
179 38cb327b 2020-11-24 stsp This can then be used to open a new
181 38cb327b 2020-11-24 stsp view for arbitrary branches and tags.
184 030916b5 2018-07-12 stsp The options for
185 030916b5 2018-07-12 stsp .Cm tog log
186 030916b5 2018-07-12 stsp are as follows:
187 030916b5 2018-07-12 stsp .Bl -tag -width Ds
189 1137e0ae 2020-01-27 stsp Display individual commits which were merged into the current branch
190 1137e0ae 2020-01-27 stsp from other branches.
191 b672a97a 2020-01-27 stsp By default,
192 b672a97a 2020-01-27 stsp .Cm tog log
193 b672a97a 2020-01-27 stsp shows the linear history of the current branch only.
196 b672a97a 2020-01-27 stsp key binding can be used to toggle display of merged commits at run-time.
197 030916b5 2018-07-12 stsp .It Fl c Ar commit
198 030916b5 2018-07-12 stsp Start traversing history at the specified
199 030916b5 2018-07-12 stsp .Ar commit .
200 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
201 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
202 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
203 19e70ad6 2019-05-14 stsp If this option is not specified, default to the work tree's current branch
204 19e70ad6 2019-05-14 stsp if invoked in a work tree, or to the repository's HEAD reference.
205 ecb28ae0 2018-07-16 stsp .It Fl r Ar repository-path
206 ecb28ae0 2018-07-16 stsp Use the repository at the specified path.
207 ecb28ae0 2018-07-16 stsp If not specified, assume the repository is located at or above the current
208 ecb28ae0 2018-07-16 stsp working directory.
209 212b39d1 2020-02-24 naddy If this directory is a
211 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
213 21920d7e 2020-12-07 stsp .It Cm diff Oo Fl a Oc Oo Fl C Ar number Oc Oo Fl r Ar repository-path Oc Oo Fl w Oc Ar object1 Ar object2
214 030916b5 2018-07-12 stsp Display the differences between two objects in the repository.
215 3dbaef42 2020-11-24 stsp Treat each of the two arguments as a reference, a tag name, or an object
216 3dbaef42 2020-11-24 stsp ID SHA1 hash, and display differences between the corresponding objects.
217 3dbaef42 2020-11-24 stsp Both objects must be of the same type (blobs, trees, or commits).
218 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
219 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
221 030916b5 2018-07-12 stsp The key bindings for
222 030916b5 2018-07-12 stsp .Cm tog diff
223 030916b5 2018-07-12 stsp are as follows:
224 030916b5 2018-07-12 stsp .Bl -tag -width Ds
226 64453f7e 2020-11-21 stsp Toggle treatment of file contents as ASCII text even if binary data was
228 f7140bf5 2021-10-17 thomas .It Cm Down-arrow, j, Ctrl-n
229 030916b5 2018-07-12 stsp Scroll down.
230 f7140bf5 2021-10-17 thomas .It Cm Up-arrow, k, Ctrl-p
232 05171be4 2022-06-23 thomas .It Cm Right-arrow, l
233 d74d8993 2022-06-23 thomas Scroll view to the right.
234 d74d8993 2022-06-23 thomas Diff output moves left on the screen.
235 05171be4 2022-06-23 thomas .It Cm Left-arrow, h
236 d74d8993 2022-06-23 thomas Scroll view to the left.
237 d74d8993 2022-06-23 thomas Diff output moves right on the screen.
239 05171be4 2022-06-23 thomas Scroll view to the rightmost position.
241 05171be4 2022-06-23 thomas Scroll view left to the start of the line.
242 70f17a53 2022-06-13 thomas .It Cm Page-down, Space, Ctrl+f
243 a60a9dc4 2019-05-13 jcs Scroll down one page.
244 70f17a53 2022-06-13 thomas .It Cm Page-up, Ctrl+b
245 a60a9dc4 2019-05-13 jcs Scroll up one page.
246 23427b14 2022-06-23 thomas .It Cm Ctrl+d, d
247 70f17a53 2022-06-13 thomas Scroll down one half page.
248 23427b14 2022-06-23 thomas .It Cm Ctrl+u, u
249 70f17a53 2022-06-13 thomas Scroll up one half page.
250 00f6361c 2021-08-30 naddy .It Cm Home, g
251 912a3f79 2021-08-30 j Scroll to the top of the view.
253 912a3f79 2021-08-30 j Scroll to the bottom of the view.
255 48ae06ee 2018-10-18 stsp Reduce the amount of diff context lines.
257 48ae06ee 2018-10-18 stsp Increase the amount of diff context lines.
258 15a087fe 2019-02-21 stsp .It Cm <, Comma
261 01ca22b1 2020-12-07 stsp view was opened via the
263 01ca22b1 2020-12-07 stsp view, move to the previous (younger) commit.
264 15a087fe 2019-02-21 stsp .It Cm >, Full stop
267 01ca22b1 2020-12-07 stsp view was opened via the
269 01ca22b1 2020-12-07 stsp view, move to the next (older) commit.
271 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
272 66dc9065 2020-02-15 stsp The search pattern is an extended regular expression.
273 66dc9065 2020-02-15 stsp Regular expression syntax is documented in
274 66dc9065 2020-02-15 stsp .Xr re_format 7 .
276 66dc9065 2020-02-15 stsp Find the next line which matches the current search pattern.
278 66dc9065 2020-02-15 stsp Find the previous line which matches the current search pattern.
280 3dbaef42 2020-11-24 stsp Toggle display of whitespace-only changes.
283 09b5bff8 2020-02-23 naddy The options for
284 09b5bff8 2020-02-23 naddy .Cm tog diff
285 09b5bff8 2020-02-23 naddy are as follows:
286 09b5bff8 2020-02-23 naddy .Bl -tag -width Ds
288 64453f7e 2020-11-21 stsp Treat file contents as ASCII text even if binary data is detected.
289 3dbaef42 2020-11-24 stsp .It Fl C Ar number
290 3dbaef42 2020-11-24 stsp Set the number of context lines shown in the diff.
291 3dbaef42 2020-11-24 stsp By default, 3 lines of context are shown.
292 09b5bff8 2020-02-23 naddy .It Fl r Ar repository-path
293 09b5bff8 2020-02-23 naddy Use the repository at the specified path.
294 09b5bff8 2020-02-23 naddy If not specified, assume the repository is located at or above the current
295 09b5bff8 2020-02-23 naddy working directory.
296 212b39d1 2020-02-24 naddy If this directory is a
298 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
300 3dbaef42 2020-11-24 stsp Ignore whitespace-only changes.
302 dfc23429 2019-08-11 stsp .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
303 030916b5 2018-07-12 stsp Display line-by-line history of a file at the specified path.
305 030916b5 2018-07-12 stsp The key bindings for
306 030916b5 2018-07-12 stsp .Cm tog blame
307 030916b5 2018-07-12 stsp are as follows:
308 030916b5 2018-07-12 stsp .Bl -tag -width Ds
309 f7140bf5 2021-10-17 thomas .It Cm Down-arrow, j, Ctrl-n
310 030916b5 2018-07-12 stsp Move the selection cursor down.
311 f7140bf5 2021-10-17 thomas .It Cm Up-arrow, k, Ctrl-p
312 030916b5 2018-07-12 stsp Move the selection cursor up.
313 05171be4 2022-06-23 thomas .It Cm Right-arrow, l
314 d74d8993 2022-06-23 thomas Scroll view to the right.
315 d74d8993 2022-06-23 thomas File output moves left on the screen.
316 05171be4 2022-06-23 thomas .It Cm Left-arrow, h
317 d74d8993 2022-06-23 thomas Scroll view to the left.
318 d74d8993 2022-06-23 thomas File output moves right on the screen.
320 05171be4 2022-06-23 thomas Scroll view to the rightmost position.
322 05171be4 2022-06-23 thomas Scroll view left to the start of the line.
323 70f17a53 2022-06-13 thomas .It Cm Page-down, Space, Ctrl+f
324 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
325 70f17a53 2022-06-13 thomas .It Cm Page-up, Ctrl+b
326 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
327 23427b14 2022-06-23 thomas .It Cm Ctrl+d, d
328 70f17a53 2022-06-13 thomas Move the selection cursor down one half page.
329 23427b14 2022-06-23 thomas .It Cm Ctrl+u, u
330 70f17a53 2022-06-13 thomas Move the selection cursor up one half page.
331 4deef56f 2021-09-02 naddy .It Cm Home, g
332 4deef56f 2021-09-02 naddy Move the selection cursor to the first line of the file.
333 4deef56f 2021-09-02 naddy .It Cm End, G
334 4deef56f 2021-09-02 naddy Move the selection cursor to the last line of the file.
335 030916b5 2018-07-12 stsp .It Cm Enter
338 030916b5 2018-07-12 stsp view for the currently selected line's commit.
342 c0d30c23 2018-10-07 stsp view with the version of the file as found in the currently
343 c0d30c23 2018-10-07 stsp selected line's commit.
347 c0d30c23 2018-10-07 stsp view with the version of the file as found in the parent commit of the
348 c0d30c23 2018-10-07 stsp currently selected line's commit.
352 c0d30c23 2018-10-07 stsp view with the previously blamed commit.
354 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
355 6c4c42e0 2019-06-24 stsp The search pattern is an extended regular expression.
356 6c4c42e0 2019-06-24 stsp Regular expression syntax is documented in
357 6c4c42e0 2019-06-24 stsp .Xr re_format 7 .
359 6c4c42e0 2019-06-24 stsp Find the next line which matches the current search pattern.
361 6c4c42e0 2019-06-24 stsp Find the previous line which matches the current search pattern.
364 030916b5 2018-07-12 stsp The options for
365 030916b5 2018-07-12 stsp .Cm tog blame
366 030916b5 2018-07-12 stsp are as follows:
367 030916b5 2018-07-12 stsp .Bl -tag -width Ds
368 030916b5 2018-07-12 stsp .It Fl c Ar commit
369 030916b5 2018-07-12 stsp Start traversing history at the specified
370 030916b5 2018-07-12 stsp .Ar commit .
371 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
372 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
373 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
374 69069811 2018-08-02 stsp .It Fl r Ar repository-path
375 69069811 2018-08-02 stsp Use the repository at the specified path.
376 69069811 2018-08-02 stsp If not specified, assume the repository is located at or above the current
377 69069811 2018-08-02 stsp working directory.
378 212b39d1 2020-02-24 naddy If this directory is a
380 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
382 55cccc34 2020-02-20 stsp .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
383 030916b5 2018-07-12 stsp Display the repository tree.
386 55cccc34 2020-02-20 stsp is specified, show tree entries at this path.
388 848d6979 2019-08-12 stsp Displayed tree entries may carry one of the following trailing annotations:
389 848d6979 2019-08-12 stsp .Bl -column YXZ description
390 848d6979 2019-08-12 stsp .It @ Ta entry is a symbolic link
391 848d6979 2019-08-12 stsp .It / Ta entry is a directory
392 848d6979 2019-08-12 stsp .It * Ta entry is an executable file
393 63c5ca5d 2019-08-24 stsp .It $ Ta entry is a Git submodule
396 0d6c6ee3 2020-05-20 stsp Symbolic link entries are also annotated with the target path of the link.
398 030916b5 2018-07-12 stsp The key bindings for
399 030916b5 2018-07-12 stsp .Cm tog tree
400 030916b5 2018-07-12 stsp are as follows:
401 030916b5 2018-07-12 stsp .Bl -tag -width Ds
402 f7140bf5 2021-10-17 thomas .It Cm Down-arrow, j, Ctrl-n
403 030916b5 2018-07-12 stsp Move the selection cursor down.
404 f7140bf5 2021-10-17 thomas .It Cm Up-arrow, k, Ctrl-p
405 030916b5 2018-07-12 stsp Move the selection cursor up.
406 70f17a53 2022-06-13 thomas .It Cm Page-down, Ctrl+f
407 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
408 70f17a53 2022-06-13 thomas .It Cm Page-up, Ctrl+b
409 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
410 23427b14 2022-06-23 thomas .It Cm Ctrl+d, d
411 70f17a53 2022-06-13 thomas Move the selection cursor down one half page.
412 23427b14 2022-06-23 thomas .It Cm Ctrl+u, u
413 70f17a53 2022-06-13 thomas Move the selection cursor up one half page.
414 e4526bf5 2021-09-03 naddy .It Cm Home, g
415 e4526bf5 2021-09-03 naddy Move the selection cursor to the first entry.
416 e4526bf5 2021-09-03 naddy .It Cm End, G
417 e4526bf5 2021-09-03 naddy Move the selection cursor to the last entry.
418 030916b5 2018-07-12 stsp .It Cm Enter
419 030916b5 2018-07-12 stsp Enter the currently selected directory, or switch to the
421 030916b5 2018-07-12 stsp view for the currently selected file.
425 69efd4c4 2018-07-18 stsp view for the currently selected tree entry.
429 152c1c93 2020-11-29 stsp view listing all references in the repository.
430 152c1c93 2020-11-29 stsp This can then be used to open a new
432 152c1c93 2020-11-29 stsp view for arbitrary branches and tags.
433 7837eeac 2018-09-24 stsp .It Cm Backspace
434 030916b5 2018-07-12 stsp Move back to the parent directory.
436 c0d30c23 2018-10-07 stsp Show object IDs for all objects displayed in the
440 4eec20aa 2019-06-22 stsp Prompt for a search pattern and start searching for matching tree entries.
441 4eec20aa 2019-06-22 stsp The search pattern is an extended regular expression which is matched
442 4eec20aa 2019-06-22 stsp against the tree entry's name.
443 4eec20aa 2019-06-22 stsp Regular expression syntax is documented in
444 4eec20aa 2019-06-22 stsp .Xr re_format 7 .
446 4eec20aa 2019-06-22 stsp Find the next tree entry which matches the current search pattern.
448 4eec20aa 2019-06-22 stsp Find the previous tree entry which matches the current search pattern.
451 030916b5 2018-07-12 stsp The options for
452 030916b5 2018-07-12 stsp .Cm tog tree
453 030916b5 2018-07-12 stsp are as follows:
454 030916b5 2018-07-12 stsp .Bl -tag -width Ds
455 030916b5 2018-07-12 stsp .It Fl c Ar commit
456 030916b5 2018-07-12 stsp Start traversing history at the specified
457 030916b5 2018-07-12 stsp .Ar commit .
458 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
459 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
460 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
461 38cb327b 2020-11-24 stsp .It Fl r Ar repository-path
462 38cb327b 2020-11-24 stsp Use the repository at the specified path.
463 38cb327b 2020-11-24 stsp If not specified, assume the repository is located at or above the current
464 38cb327b 2020-11-24 stsp working directory.
465 38cb327b 2020-11-24 stsp If this directory is a
467 38cb327b 2020-11-24 stsp work tree, use the repository path associated with this work tree.
469 38cb327b 2020-11-24 stsp .It Cm ref Oo Fl r Ar repository-path Oc
470 38cb327b 2020-11-24 stsp Display references in the repository.
472 38cb327b 2020-11-24 stsp The key bindings for
473 38cb327b 2020-11-24 stsp .Cm tog ref
474 38cb327b 2020-11-24 stsp are as follows:
475 38cb327b 2020-11-24 stsp .Bl -tag -width Ds
476 f7140bf5 2021-10-17 thomas .It Cm Down-arrow, j, Ctrl-n
477 38cb327b 2020-11-24 stsp Move the selection cursor down.
478 f7140bf5 2021-10-17 thomas .It Cm Up-arrow, k, Ctrl-p
479 38cb327b 2020-11-24 stsp Move the selection cursor up.
480 70f17a53 2022-06-13 thomas .It Cm Page-down, Ctrl+f
481 38cb327b 2020-11-24 stsp Move the selection cursor down one page.
482 70f17a53 2022-06-13 thomas .It Cm Page-up, Ctrl+b
483 38cb327b 2020-11-24 stsp Move the selection cursor up one page.
484 23427b14 2022-06-23 thomas .It Cm Ctrl+d, d
485 70f17a53 2022-06-13 thomas Move the selection cursor down one half page.
486 23427b14 2022-06-23 thomas .It Cm Ctrl+u, u
487 70f17a53 2022-06-13 thomas Move the selection cursor up one half page.
488 e4526bf5 2021-09-03 naddy .It Cm Home, g
489 e4526bf5 2021-09-03 naddy Move the selection cursor to the first reference.
490 e4526bf5 2021-09-03 naddy .It Cm End, G
491 e4526bf5 2021-09-03 naddy Move the selection cursor to the last reference.
492 38cb327b 2020-11-24 stsp .It Cm Enter
495 01ca22b1 2020-12-07 stsp view which begins traversing history at the commit resolved via the
496 38cb327b 2020-11-24 stsp currently selected reference.
500 c42c9805 2020-11-24 stsp view showing the tree resolved via the currently selected reference.
502 38cb327b 2020-11-24 stsp Show object IDs for all non-symbolic references displayed in the
506 84227eb1 2022-06-23 thomas Show last modified date of each displayed reference.
508 3bfadbd4 2021-11-20 thomas Toggle display order of references between sort by name and sort by timestamp.
510 38cb327b 2020-11-24 stsp Prompt for a search pattern and start searching for matching references.
511 38cb327b 2020-11-24 stsp The search pattern is an extended regular expression which is matched
512 38cb327b 2020-11-24 stsp against absolute reference names.
513 38cb327b 2020-11-24 stsp Regular expression syntax is documented in
514 38cb327b 2020-11-24 stsp .Xr re_format 7 .
516 38cb327b 2020-11-24 stsp Find the next reference which matches the current search pattern.
518 38cb327b 2020-11-24 stsp Find the previous reference which matches the current search pattern.
519 38cb327b 2020-11-24 stsp .It Cm Ctrl+l
520 38cb327b 2020-11-24 stsp Reload the list of references displayed by the
525 38cb327b 2020-11-24 stsp The options for
526 38cb327b 2020-11-24 stsp .Cm tog ref
527 38cb327b 2020-11-24 stsp are as follows:
528 38cb327b 2020-11-24 stsp .Bl -tag -width Ds
529 74283ab8 2020-02-07 stsp .It Fl r Ar repository-path
530 74283ab8 2020-02-07 stsp Use the repository at the specified path.
531 74283ab8 2020-02-07 stsp If not specified, assume the repository is located at or above the current
532 74283ab8 2020-02-07 stsp working directory.
533 74283ab8 2020-02-07 stsp If this directory is a
535 74283ab8 2020-02-07 stsp work tree, use the repository path associated with this work tree.
538 6d17833f 2019-11-08 stsp .Sh ENVIRONMENT
539 6d17833f 2019-11-08 stsp .Bl -tag -width TOG_COLORS
540 6d17833f 2019-11-08 stsp .It Ev TOG_COLORS
542 6d17833f 2019-11-08 stsp shows colorized output if this variable is set to a non-empty value.
543 6d17833f 2019-11-08 stsp The default color scheme can be modified by setting the environment
544 6d17833f 2019-11-08 stsp variables documented below.
545 6d17833f 2019-11-08 stsp The colors available in color schemes are
546 6d17833f 2019-11-08 stsp .Dq black ,
548 6d17833f 2019-11-08 stsp .Dq green ,
549 6d17833f 2019-11-08 stsp .Dq yellow ,
551 93a300b2 2021-08-26 stsp .Dq magenta ,
554 1d7fe5cd 2019-11-08 stsp .Dq default
555 1d7fe5cd 2019-11-08 stsp which maps to the terminal's default foreground color.
556 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_MINUS
557 6d17833f 2019-11-08 stsp The color used to mark up removed lines in diffs.
558 6d17833f 2019-11-08 stsp If not set, the default value
559 6d17833f 2019-11-08 stsp .Dq magenta
561 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_PLUS
562 6d17833f 2019-11-08 stsp The color used to mark up added lines in diffs.
563 6d17833f 2019-11-08 stsp If not set, the default value
566 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
567 6d17833f 2019-11-08 stsp The color used to mark up chunk header lines in diffs.
568 6d17833f 2019-11-08 stsp If not set, the default value
571 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_META
572 6d17833f 2019-11-08 stsp The color used to mark up meta data in diffs.
573 c0b01bdb 2019-11-08 stsp If not set, the default value
576 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SUBMODULE
577 93a300b2 2021-08-26 stsp The color used to mark up submodule tree entries.
578 c0b01bdb 2019-11-08 stsp If not set, the default value
579 c0b01bdb 2019-11-08 stsp .Dq magenta
581 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SYMLINK
582 c0b01bdb 2019-11-08 stsp The color used to mark up symbolic link tree entries.
583 c0b01bdb 2019-11-08 stsp If not set, the default value
584 91b8c405 2020-01-25 stsp .Dq magenta
586 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_DIRECTORY
587 c0b01bdb 2019-11-08 stsp The color used to mark up directory tree entries.
588 6d17833f 2019-11-08 stsp If not set, the default value
591 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_EXECUTABLE
592 c0b01bdb 2019-11-08 stsp The color used to mark up executable file tree entries.
593 c0b01bdb 2019-11-08 stsp If not set, the default value
596 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_COMMIT
597 11b20872 2019-11-08 stsp The color used to mark up commit IDs.
598 11b20872 2019-11-08 stsp If not set, the default value
601 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_AUTHOR
602 11b20872 2019-11-08 stsp The color used to mark up author information.
603 11b20872 2019-11-08 stsp If not set, the default value
606 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_DATE
607 11b20872 2019-11-08 stsp The color used to mark up date information.
608 11b20872 2019-11-08 stsp If not set, the default value
611 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_HEADS
612 38cb327b 2020-11-24 stsp The color used to mark up references in the
613 38cb327b 2020-11-24 stsp .Dq refs/heads/
615 38cb327b 2020-11-24 stsp If not set, the default value
618 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_TAGS
619 38cb327b 2020-11-24 stsp The color used to mark up references in the
620 38cb327b 2020-11-24 stsp .Dq refs/tags/
622 38cb327b 2020-11-24 stsp If not set, the default value
623 38cb327b 2020-11-24 stsp .Dq magenta
625 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_REMOTES
626 38cb327b 2020-11-24 stsp The color used to mark up references in the
627 38cb327b 2020-11-24 stsp .Dq refs/remotes/
629 38cb327b 2020-11-24 stsp If not set, the default value
632 2183bbf6 2022-01-23 thomas .It Ev TOG_COLOR_REFS_BACKUP
633 2183bbf6 2022-01-23 thomas The color used to mark up references in the
634 2183bbf6 2022-01-23 thomas .Dq refs/got/backup/
635 2183bbf6 2022-01-23 thomas namespace.
636 2183bbf6 2022-01-23 thomas If not set, the default value
640 030916b5 2018-07-12 stsp .Sh EXIT STATUS
641 030916b5 2018-07-12 stsp .Ex -std tog
642 030916b5 2018-07-12 stsp .Sh SEE ALSO
643 56b9a4ca 2019-06-21 stsp .Xr got 1 ,
644 56b9a4ca 2019-06-21 stsp .Xr git-repository 5 ,
645 56b9a4ca 2019-06-21 stsp .Xr re_format 7
646 030916b5 2018-07-12 stsp .Sh AUTHORS
647 030916b5 2018-07-12 stsp .An Stefan Sperling Aq Mt stsp@openbsd.org
648 bc3056e3 2019-08-18 stsp .An Joshua Stein Aq Mt jcs@openbsd.org