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