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