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