Blob


1 .\"
2 .\" Copyright (c) 2018 Stefan Sperling
3 .\"
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.
7 .\"
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.
15 .\"
16 .Dd $Mdocdate$
17 .Dt TOG 1
18 .Os
19 .Sh NAME
20 .Nm tog
21 .Nd Git repository browser
22 .Sh SYNOPSIS
23 .Nm
24 .Op Fl hV
25 .Ar command
26 .Op Ar arg ...
27 .Pp
28 .Nm
29 .Ar path
30 .Sh DESCRIPTION
31 .Nm
32 is an interactive read-only browser for Git repositories.
33 This repository format is described in
34 .Xr git-repository 5 .
35 .Pp
36 .Nm
37 supports several types of views which display repository data:
38 .Bl -tag -width Ds
39 .It Log view
40 Displays commits in the repository's history.
41 This view is displayed initially if no
42 .Ar command
43 is specified, or if just a
44 .Ar path
45 is specified.
46 .It Diff view
47 Displays changes made in a particular commit.
48 .It Blame view
49 Displays the line-by-line history of a file.
50 .It Tree view
51 Displays the tree corresponding to a particular commit.
52 .It Ref view
53 Displays references in the repository.
54 .El
55 .Pp
56 .Nm
57 provides global and command-specific key bindings and options.
58 Some command-specific key bindings may be prefixed with an integer, which is
59 denoted by N in the descriptions below, and is used as a modifier to the
60 operation as indicated.
61 .Nm
62 will echo digits to the screen when count modifiers are entered, and complete
63 the sequence upon input of the first non-numeric character.
64 Count modifiers can be aborted by entering an unmapped key.
65 Once a compound command is executed, the operation can be cancelled with
66 .Cm C-g
67 or
68 .Cm Backspace .
69 .Pp
70 Global options must precede the command name, and are as follows:
71 .Bl -tag -width tenletters
72 .It Fl h
73 Display usage information.
74 .It Fl V , -version
75 Display program version and exit immediately.
76 .El
77 .Pp
78 The global key bindings are:
79 .Bl -tag -width Ds
80 .It Cm H, F1
81 Display run-time help.
82 Key bindings for the focussed view will be displayed.
83 Pressing this again inside the help view will toggle the display of
84 key bindings for all
85 .Nm
86 views.
87 .It Cm Q
88 Quit
89 .Nm .
90 .It Cm q
91 Quit the view which is in focus.
92 .It Cm Tab
93 Switch focus between views.
94 .It Cm F
95 Toggle fullscreen mode for a split-screen view.
96 .Nm
97 will automatically use vertical split-screen views if the size of the
98 terminal window is sufficiently large.
99 .It Cm S
100 Switch the current split-screen layout, and render all active views in
101 this new layout.
102 The split-screen layout can be either vertical or horizontal.
103 If the terminal is not wide enough when switching to a vertical split,
104 views will render in fullscreen.
105 .It Cm -
106 When in a split-screen view, decrease the size of the focussed split
107 N increments (default: 1).
108 .It Cm +
109 When in a split-screen view, increase the size of the focussed split
110 N increments (default: 1).
111 .It Cm G
112 Go to line N in the view (default: last line).
113 .It Cm g
114 Go to line N in the view (default: first line).
115 .It Cm Right-arrow, l
116 Scroll view to the right N increments (default: 1).
117 .br
118 Output moves left on the screen.
119 .It Cm Left-arrow, h
120 Scroll view to the left N increments (default: 1).
121 .br
122 Output moves right on the screen.
123 .It Cm $
124 Scroll view to the rightmost position.
125 .It Cm 0
126 Scroll view left to the start of the line.
127 .El
128 .Pp
129 The commands for
130 .Nm
131 are as follows:
132 .Bl -tag -width blame
133 .It Xo
134 .Cm log
135 .Op Fl b
136 .Op Fl c Ar commit
137 .Op Fl r Ar repository-path
138 .Op Ar path
139 .Xc
140 Display history of a repository.
141 If a
142 .Ar path
143 is specified, show only commits which modified this path.
144 If invoked in a work tree, the
145 .Ar path
146 is interpreted relative to the current working directory,
147 and the work tree's path prefix is implicitly prepended.
148 Otherwise, the path is interpreted relative to the repository root.
149 .Pp
150 This command is also executed if no explicit command is specified.
151 .Pp
152 The key bindings for
153 .Cm tog log
154 are as follows (N denotes optional prefixed count modifier):
155 .Bl -tag -width Ds
156 .It Cm Down-arrow, j, >, Full stop, Ctrl-n
157 Move the selection cursor down N lines (default: 1).
158 .It Cm Up-arrow, k, <, Comma, Ctrl-p
159 Move the selection cursor up N lines (default: 1).
160 .It Cm Page-down, Space, Ctrl+f, f
161 Move the selection cursor down N pages (default: 1).
162 .It Cm Page-up, Ctrl+b, b
163 Move the selection cursor up N pages (default: 1).
164 .It Cm Ctrl+d, d
165 Move the selection cursor down N half pages (default: 1).
166 .It Cm Ctrl+u, u
167 Move the selection cursor up N half pages (default: 1).
168 .It Cm Home, =
169 Move the cursor to the newest commit.
170 .It Cm End, *
171 Move the cursor to the oldest commit.
172 This will traverse all commits on the current branch which may take
173 a long time depending on the number of commits in branch history.
174 If needed, this operation can be cancelled with
175 .Cm C-g
176 or
177 .Cm Backspace .
178 .It Cm g
179 Move the cursor to commit N (default: 1).
180 .It Cm G
181 Like
182 .Cm g
183 but defaults to the oldest commit.
184 .It Cm Enter
185 Open a
186 .Cm diff
187 view showing file changes made in the currently selected commit.
188 .It Cm T
189 Open a
190 .Cm tree
191 view showing the tree for the currently selected commit.
192 .It Cm Backspace
193 Show log entries for the parent directory of the currently selected path.
194 However when an active search is in progress or when additional commits
195 are loaded,
196 .Cm Backspace
197 aborts the running operation.
198 .It Cm /
199 Prompt for a search pattern and start searching for matching commits.
200 The search pattern is an extended regular expression which is matched
201 against a commit's author name, committer name, log message, and
202 commit ID SHA1 hash.
203 Regular expression syntax is documented in
204 .Xr re_format 7 .
205 .It Cm &
206 Prompt for a pattern and limit the log view's list of commits to those
207 which match the pattern.
208 If no pattern is specified, i.e. the
209 .Cm &
210 prompt is immediately closed with the Enter key, then the pattern is
211 cleared.
212 Until the pattern is cleared, the limited list of commits replaces the
213 full list of commits for all operations supported by the log view.
214 For example, a search started with
215 .Cm /
216 will search the limited list of commits, rather than searching all commits.
217 The pattern is an extended regular expression which is matched
218 against a commit's author name, committer name, log message, and
219 commit ID SHA1 hash.
220 Regular expression syntax is documented in
221 .Xr re_format 7 .
222 .It Cm n
223 Find the Nth next commit which matches the current search pattern (default: 1).
224 .br
225 Searching continues until either a match is found or
226 .Cm C-g
227 or the
228 .Cm Backspace
229 key is pressed.
230 .It Cm N
231 Find the Nth previous commit which matches the current search pattern
232 (default: 1).
233 .br
234 Searching continues until either a match is found or
235 .Cm C-g
236 or the
237 .Cm Backspace
238 key is pressed.
239 .It Cm Ctrl+l
240 Reload the
241 .Cm log
242 view with new commits found in the repository.
243 .It Cm B
244 Reload the
245 .Cm log
246 view and toggle display of merged commits.
247 The
248 .Fl b
249 option determines whether merged commits are displayed initially.
250 .It Cm R
251 Open a
252 .Cm ref
253 view listing all references in the repository.
254 This can then be used to open a new
255 .Cm log
256 view for arbitrary branches and tags.
257 .It Cm @
258 Toggle between showing the committer name and the author name.
259 .El
260 .Pp
261 The options for
262 .Cm tog log
263 are as follows:
264 .Bl -tag -width Ds
265 .It Fl b
266 Display individual commits which were merged into the current branch
267 from other branches.
268 By default,
269 .Cm tog log
270 shows the linear history of the current branch only.
271 The
272 .Cm B
273 key binding can be used to toggle display of merged commits at run-time.
274 .It Fl c Ar commit
275 Start traversing history at the specified
276 .Ar commit .
277 The expected argument is the name of a branch or a commit ID SHA1 hash.
278 An abbreviated hash argument will be expanded to a full SHA1 hash
279 automatically, provided the abbreviation is unique.
280 If this option is not specified, default to the work tree's current branch
281 if invoked in a work tree, or to the repository's HEAD reference.
282 .It Fl r Ar repository-path
283 Use the repository at the specified path.
284 If not specified, assume the repository is located at or above the current
285 working directory.
286 If this directory is a
287 .Xr got 1
288 work tree, use the repository path associated with this work tree.
289 .El
290 .It Xo
291 .Cm diff
292 .Op Fl aw
293 .Op Fl C Ar number
294 .Op Fl r Ar repository-path
295 .Ar object1
296 .Ar object2
297 .Xc
298 Display the differences between two objects in the repository.
299 Treat each of the two arguments as a reference, a tag name, or an object
300 ID SHA1 hash, and display differences between the corresponding objects.
301 Both objects must be of the same type (blobs, trees, or commits).
302 An abbreviated hash argument will be expanded to a full SHA1 hash
303 automatically, provided the abbreviation is unique.
304 .Pp
305 The key bindings for
306 .Cm tog diff
307 are as follows (N denotes optional prefixed count modifier):
308 .Bl -tag -width Ds
309 .It Cm a
310 Toggle treatment of file contents as ASCII text even if binary data was
311 detected.
312 .It Cm Down-arrow, j, Ctrl-n
313 Scroll down N lines (default: 1).
314 .It Cm Up-arrow, k, Ctrl-p
315 Scroll up N lines (default: 1).
316 .It Cm Page-down, Space, Ctrl+f, f
317 Scroll down N pages (default: 1).
318 .It Cm Page-up, Ctrl+b, b
319 Scroll up N pages (default: 1).
320 .It Cm Ctrl+d, d
321 Scroll down N half pages (default: 1).
322 .It Cm Ctrl+u, u
323 Scroll up N half pages (default: 1).
324 .It Cm Home
325 Scroll to the top of the view.
326 .It Cm End
327 Scroll to the bottom of the view.
328 .It Cm g
329 Scroll to line N (default: 1).
330 .It Cm G
331 Like
332 .Cm g
333 but defaults to the last line in the diff.
334 .It Cm \&(
335 Navigate to the Nth previous file in the diff (default: 1).
336 .It Cm \&)
337 Navigate to the Nth next file in the diff (default: 1).
338 .It Cm \&{
339 Navigate to the Nth previous hunk in the diff (default: 1).
340 .It Cm \&}
341 Navigate to the Nth next hunk in the diff (default: 1).
342 .It Cm \&[
343 Reduce diff context by N lines (default: 1).
344 .It Cm \&]
345 Increase diff context by N lines (default: 1).
346 .It Cm <, Comma, K
347 If the
348 .Cm diff
349 view was opened via the
350 .Cm log
351 view, move to the Nth previous (younger) commit.
352 If the diff was opened via the
353 .Cm blame
354 view, move to the Nth previous line and load the corresponding commit
355 (default: 1).
356 .It Cm >, Full stop, J
357 If the
358 .Cm diff
359 view was opened via the
360 .Cm log
361 view, move to the Nth next (older) commit.
362 If the diff was opened via the
363 .Cm blame
364 view, move to the Nth next line and load the corresponding commit (default: 1).
365 .It Cm /
366 Prompt for a search pattern and start searching for matching lines.
367 The search pattern is an extended regular expression.
368 Regular expression syntax is documented in
369 .Xr re_format 7 .
370 .It Cm n
371 Find the Nth next line which matches the current search pattern (default: 1).
372 .It Cm N
373 Find the Nth previous line which matches the current search pattern
374 (default: 1).
375 .It Cm w
376 Toggle display of whitespace-only changes.
377 .It Cm A
378 Change the diff algorithm.
379 Supported diff algorithms are Myers (quick and dirty) and
380 Patience (slow and tidy).
381 This is a global setting which also affects the
382 .Cm blame
383 view.
384 .El
385 .Pp
386 The options for
387 .Cm tog diff
388 are as follows:
389 .Bl -tag -width Ds
390 .It Fl a
391 Treat file contents as ASCII text even if binary data is detected.
392 .It Fl C Ar number
393 Set the number of context lines shown in the diff.
394 By default, 3 lines of context are shown.
395 .It Fl r Ar repository-path
396 Use the repository at the specified path.
397 If not specified, assume the repository is located at or above the current
398 working directory.
399 If this directory is a
400 .Xr got 1
401 work tree, use the repository path associated with this work tree.
402 .It Fl w
403 Ignore whitespace-only changes.
404 .El
405 .It Xo
406 .Cm blame
407 .Op Fl c Ar commit
408 .Op Fl r Ar repository-path
409 .Ar path
410 .Xc
411 Display line-by-line history of a file at the specified path.
412 .Pp
413 The key bindings for
414 .Cm tog blame
415 are as follows (N denotes optional prefixed count modifier):
416 .Bl -tag -width Ds
417 .It Cm Down-arrow, j, Ctrl-n
418 Move the selection cursor down N pages (default: 1).
419 .It Cm Up-arrow, k, Ctrl-p
420 Move the selection cursor up N pages (default: 1).
421 .It Cm Page-down, Space, Ctrl+f, f
422 Move the selection cursor down N pages (default: 1).
423 .It Cm Page-up, Ctrl+b, b
424 Move the selection cursor up N pages (default: 1).
425 .It Cm Ctrl+d, d
426 Move the selection cursor down N half pages (default: 1).
427 .It Cm Ctrl+u, u
428 Move the selection cursor up N half pages (default: 1).
429 .It Cm Home
430 Move the selection cursor to the first line of the file.
431 .It Cm End
432 Move the selection cursor to the last line of the file.
433 .It Cm g
434 Move the selection cursor to line N (default: 1).
435 .It Cm G
436 Like
437 .Cm g
438 but defaults to the last line in the file.
439 .It Cm Enter
440 Open a
441 .Cm diff
442 view for the currently selected line's commit.
443 .It Cm c
444 Reload the
445 .Cm blame
446 view with the version of the file as found in the currently
447 selected line's commit.
448 .It Cm p
449 Reload the
450 .Cm blame
451 view with the version of the file as found in the parent commit of the
452 currently selected line's commit.
453 .It Cm C
454 Reload the
455 .Cm blame
456 view with the previously blamed commit.
457 .It Cm L
458 Open a
459 .Cm log
460 view for the currently selected annotated line.
461 .It Cm /
462 Prompt for a search pattern and start searching for matching lines.
463 The search pattern is an extended regular expression.
464 Regular expression syntax is documented in
465 .Xr re_format 7 .
466 .It Cm n
467 Find the Nth next line which matches the current search pattern (default: 1).
468 .It Cm N
469 Find the Nth previous line which matches the current search pattern
470 (default: 1).
471 .It Cm A
472 Change the diff algorithm.
473 Supported diff algorithms are Myers (quick and dirty) and
474 Patience (slow and tidy).
475 This is a global setting which also affects the
476 .Cm diff
477 view.
478 .El
479 .Pp
480 The options for
481 .Cm tog blame
482 are as follows:
483 .Bl -tag -width Ds
484 .It Fl c Ar commit
485 Start traversing history at the specified
486 .Ar commit .
487 The expected argument is the name of a branch or a commit ID SHA1 hash.
488 An abbreviated hash argument will be expanded to a full SHA1 hash
489 automatically, provided the abbreviation is unique.
490 .It Fl r Ar repository-path
491 Use the repository at the specified path.
492 If not specified, assume the repository is located at or above the current
493 working directory.
494 If this directory is a
495 .Xr got 1
496 work tree, use the repository path associated with this work tree.
497 .El
498 .It Xo
499 .Cm tree
500 .Op Fl c Ar commit
501 .Op Fl r Ar repository-path
502 .Op Ar path
503 .Xc
504 Display the repository tree.
505 If a
506 .Ar path
507 is specified, show tree entries at this path.
508 .Pp
509 Displayed tree entries may carry one of the following trailing annotations:
510 .Bl -column YXZ description
511 .It @ Ta entry is a symbolic link
512 .It / Ta entry is a directory
513 .It * Ta entry is an executable file
514 .It $ Ta entry is a Git submodule
515 .El
516 .Pp
517 Symbolic link entries are also annotated with the target path of the link.
518 .Pp
519 The key bindings for
520 .Cm tog tree
521 are as follows (N denotes optional prefixed count modifier):
522 .Bl -tag -width Ds
523 .It Cm Down-arrow, j, Ctrl-n
524 Move the selection cursor down N lines (default: 1).
525 .It Cm Up-arrow, k, Ctrl-p
526 Move the selection cursor up N lines (default: 1).
527 .It Cm Page-down, Space, Ctrl+f, f
528 Move the selection cursor down N pages (default: 1).
529 .It Cm Page-up, Ctrl+b, b
530 Move the selection cursor up N pages (default: 1).
531 .It Cm Ctrl+d, d
532 Move the selection cursor down N half pages (default: 1).
533 .It Cm Ctrl+u, u
534 Move the selection cursor up N half pages (default: 1).
535 .It Cm Home, =
536 Move the selection cursor to the first entry.
537 .It Cm End, *
538 Move the selection cursor to the last entry.
539 .It Cm g
540 Move the selection cursor to entry N (default: 1).
541 .It Cm G
542 Like
543 .Cm g
544 but defaults to the last entry.
545 .It Cm Enter
546 Enter the currently selected directory, or switch to the
547 .Cm blame
548 view for the currently selected file.
549 .It Cm L
550 Open a
551 .Cm log
552 view for the currently selected tree entry.
553 .It Cm R
554 Open a
555 .Cm ref
556 view listing all references in the repository.
557 This can then be used to open a new
558 .Cm tree
559 view for arbitrary branches and tags.
560 .It Cm Backspace
561 Move back to the Nth parent directory (default: 1).
562 .It Cm i
563 Show object IDs for all objects displayed in the
564 .Cm tree
565 view.
566 .It Cm /
567 Prompt for a search pattern and start searching for matching tree entries.
568 The search pattern is an extended regular expression which is matched
569 against the tree entry's name.
570 Regular expression syntax is documented in
571 .Xr re_format 7 .
572 .It Cm n
573 Find the Nth next tree entry which matches the current search pattern
574 (default: 1).
575 .It Cm N
576 Find the Nth previous tree entry which matches the current search pattern
577 (default: 1).
578 .El
579 .Pp
580 The options for
581 .Cm tog tree
582 are as follows:
583 .Bl -tag -width Ds
584 .It Fl c Ar commit
585 Start traversing history at the specified
586 .Ar commit .
587 The expected argument is the name of a branch or a commit ID SHA1 hash.
588 An abbreviated hash argument will be expanded to a full SHA1 hash
589 automatically, provided the abbreviation is unique.
590 .It Fl r Ar repository-path
591 Use the repository at the specified path.
592 If not specified, assume the repository is located at or above the current
593 working directory.
594 If this directory is a
595 .Xr got 1
596 work tree, use the repository path associated with this work tree.
597 .El
598 .It Cm ref Op Fl r Ar repository-path
599 Display references in the repository.
600 .Pp
601 The key bindings for
602 .Cm tog ref
603 are as follows (N denotes optional prefixed count modifier):
604 .Bl -tag -width Ds
605 .It Cm Down-arrow, j, Ctrl-n
606 Move the selection cursor down N lines (default: 1).
607 .It Cm Up-arrow, k, Ctrl-p
608 Move the selection cursor up N lines (default: 1).
609 .It Cm Page-down, Space, Ctrl+f, f
610 Move the selection cursor down N pages (default: 1).
611 .It Cm Page-up, Ctrl+b, b
612 Move the selection cursor up N pages (default: 1).
613 .It Cm Ctrl+d, d
614 Move the selection cursor down N half pages (default: 1).
615 .It Cm Ctrl+u, u
616 Move the selection cursor up N half pages (default: 1).
617 .It Cm Home, =
618 Move the selection cursor to the first reference.
619 .It Cm End, *
620 Move the selection cursor to the last reference.
621 .It Cm g
622 Move the selection cursor to reference N (default: 1).
623 .It Cm G
624 Like
625 .Cm g
626 but defaults to the last reference.
627 .It Cm Enter
628 Open a
629 .Cm log
630 view which begins traversing history at the commit resolved via the
631 currently selected reference.
632 .It Cm T
633 Open a
634 .Cm tree
635 view showing the tree resolved via the currently selected reference.
636 .It Cm i
637 Show object IDs for all non-symbolic references displayed in the
638 .Cm ref
639 view.
640 .It Cm m
641 Show last modified date of each displayed reference.
642 .It Cm o
643 Toggle display order of references between sort by name and sort by timestamp.
644 .It Cm /
645 Prompt for a search pattern and start searching for matching references.
646 The search pattern is an extended regular expression which is matched
647 against absolute reference names.
648 Regular expression syntax is documented in
649 .Xr re_format 7 .
650 .It Cm n
651 Find the Nth next reference which matches the current search pattern
652 (default: 1).
653 .It Cm N
654 Find the Nth previous reference which matches the current search pattern
655 (default: 1).
656 .It Cm Ctrl+l
657 Reload the list of references displayed by the
658 .Cm ref
659 view.
660 .El
661 .Pp
662 The options for
663 .Cm tog ref
664 are as follows:
665 .Bl -tag -width Ds
666 .It Fl r Ar repository-path
667 Use the repository at the specified path.
668 If not specified, assume the repository is located at or above the current
669 working directory.
670 If this directory is a
671 .Xr got 1
672 work tree, use the repository path associated with this work tree.
673 .El
674 .El
675 .Sh ENVIRONMENT
676 .Bl -tag -width TOG_VIEW_SPLIT_MODE
677 .It Ev TOG_COLORS
678 .Nm
679 shows colorized output if this variable is set to a non-empty value.
680 The default color scheme can be modified by setting the environment
681 variables documented below.
682 The colors available in color schemes are
683 .Dq black ,
684 .Dq red ,
685 .Dq green ,
686 .Dq yellow ,
687 .Dq blue ,
688 .Dq magenta ,
689 .Dq cyan ,
690 and
691 .Dq default
692 which maps to the terminal's default foreground color.
693 .It Ev TOG_COLOR_AUTHOR
694 The color used to mark up author information.
695 If not set, the default value
696 .Dq cyan
697 is used.
698 .It Ev TOG_COLOR_COMMIT
699 The color used to mark up commit IDs.
700 If not set, the default value
701 .Dq green
702 is used.
703 .It Ev TOG_COLOR_DATE
704 The color used to mark up date information.
705 If not set, the default value
706 .Dq yellow
707 is used.
708 .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
709 The color used to mark up chunk header lines in diffs.
710 If not set, the default value
711 .Dq yellow
712 is used.
713 .It Ev TOG_COLOR_DIFF_META
714 The color used to mark up meta data in diffs.
715 If not set, the default value
716 .Dq green
717 is used.
718 .It Ev TOG_COLOR_DIFF_MINUS
719 The color used to mark up removed lines in diffs.
720 If not set, the default value
721 .Dq magenta
722 is used.
723 .It Ev TOG_COLOR_DIFF_PLUS
724 The color used to mark up added lines in diffs.
725 If not set, the default value
726 .Dq cyan
727 is used.
728 .It Ev TOG_COLOR_REFS_BACKUP
729 The color used to mark up references in the
730 .Dq refs/got/backup/
731 namespace.
732 If not set, the default value
733 .Dq cyan
734 is used.
735 .It Ev TOG_COLOR_REFS_HEADS
736 The color used to mark up references in the
737 .Dq refs/heads/
738 namespace.
739 If not set, the default value
740 .Dq green
741 is used.
742 .It Ev TOG_COLOR_REFS_REMOTES
743 The color used to mark up references in the
744 .Dq refs/remotes/
745 namespace.
746 If not set, the default value
747 .Dq yellow
748 is used.
749 .It Ev TOG_COLOR_REFS_TAGS
750 The color used to mark up references in the
751 .Dq refs/tags/
752 namespace.
753 If not set, the default value
754 .Dq magenta
755 is used.
756 .It Ev TOG_COLOR_TREE_DIRECTORY
757 The color used to mark up directory tree entries.
758 If not set, the default value
759 .Dq cyan
760 is used.
761 .It Ev TOG_COLOR_TREE_EXECUTABLE
762 The color used to mark up executable file tree entries.
763 If not set, the default value
764 .Dq green
765 is used.
766 .It Ev TOG_COLOR_TREE_SUBMODULE
767 The color used to mark up submodule tree entries.
768 If not set, the default value
769 .Dq magenta
770 is used.
771 .It Ev TOG_COLOR_TREE_SYMLINK
772 The color used to mark up symbolic link tree entries.
773 If not set, the default value
774 .Dq magenta
775 is used.
776 .It Ev TOG_DIFF_ALGORITHM
777 Determines the default diff algorithm used by
778 .Nm .
779 Supported diff algorithms are Myers (quick and dirty) and
780 Patience (slow and tidy).
781 Valid values for
782 .Ev TOG_DIFF_ALGORITHM
783 are
784 .Dq patience
785 and
786 .Dq myers .
787 If unset, the Myers diff algorithm will be used by default.
788 .It Ev TOG_VIEW_SPLIT_MODE
789 Determines the default layout of split-screen views.
790 If set to
791 .Dq h
792 or
793 .Dq H ,
794 .Nm
795 will use horizontal split by default.
796 Otherwise, vertical split will be used.
797 The
798 .Cm S
799 key can be used to switch between vertical and horizontal split layout
800 at run-time.
801 .El
802 .Sh EXIT STATUS
803 .Ex -std tog
804 .Sh SEE ALSO
805 .Xr got 1 ,
806 .Xr git-repository 5 ,
807 .Xr re_format 7
808 .Sh AUTHORS
809 .An Christian Weisgerber Aq Mt naddy@openbsd.org
810 .An Josh Rickmar Aq Mt jrick@zettaport.com
811 .An Joshua Stein Aq Mt jcs@openbsd.org
812 .An Mark Jamsek Aq Mt mark@jamsek.dev
813 .An Martin Pieuchot Aq Mt mpi@openbsd.org
814 .An Omar Polo Aq Mt op@openbsd.org
815 .An Stefan Sperling Aq Mt stsp@openbsd.org
816 .An Klemens Nanni Aq Mt kn@openbsd.org