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 a Oc Oo Fl C Ar number Oc Oo Fl r Ar repository-path Oc Oo Fl w 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 Reduce diff context by N lines (default: 1).
299 .It Cm \&]
300 Increase diff context by N lines (default: 1).
301 .It Cm <, Comma, K
302 If the
303 .Cm diff
304 view was opened via the
305 .Cm log
306 view, move to the Nth previous (younger) commit.
307 If the diff was opened via the
308 .Cm blame
309 view, move to the Nth previous line and load the corresponding commit
310 (default: 1).
311 .It Cm >, Full stop, J
312 If the
313 .Cm diff
314 view was opened via the
315 .Cm log
316 view, move to the Nth next (older) commit.
317 If the diff was opened via the
318 .Cm blame
319 view, move to the Nth next line and load the corresponding commit (default: 1).
320 .It Cm /
321 Prompt for a search pattern and start searching for matching lines.
322 The search pattern is an extended regular expression.
323 Regular expression syntax is documented in
324 .Xr re_format 7 .
325 .It Cm n
326 Find the Nth next line which matches the current search pattern (default: 1).
327 .It Cm N
328 Find the Nth previous line which matches the current search pattern
329 (default: 1).
330 .It Cm w
331 Toggle display of whitespace-only changes.
332 .It Cm A
333 Change the diff algorithm.
334 Supported diff algorithms are Myers (quick and dirty) and
335 Patience (slow and tidy).
336 This is a global setting which also affects the
337 .Cm blame
338 view.
339 .El
340 .Pp
341 The options for
342 .Cm tog diff
343 are as follows:
344 .Bl -tag -width Ds
345 .It Fl a
346 Treat file contents as ASCII text even if binary data is detected.
347 .It Fl C Ar number
348 Set the number of context lines shown in the diff.
349 By default, 3 lines of context are shown.
350 .It Fl r Ar repository-path
351 Use the repository at the specified path.
352 If not specified, assume the repository is located at or above the current
353 working directory.
354 If this directory is a
355 .Xr got 1
356 work tree, use the repository path associated with this work tree.
357 .It Fl w
358 Ignore whitespace-only changes.
359 .El
360 .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
361 Display line-by-line history of a file at the specified path.
362 .Pp
363 The key bindings for
364 .Cm tog blame
365 are as follows (N denotes optional prefixed count modifier):
366 .Bl -tag -width Ds
367 .It Cm Down-arrow, j, Ctrl-n
368 Move the selection cursor down N pages (default: 1).
369 .It Cm Up-arrow, k, Ctrl-p
370 Move the selection cursor up N pages (default: 1).
371 .It Cm Right-arrow, l
372 Scroll view to the right N increments (default: 1).
373 .br
374 File output moves left on the screen.
375 .It Cm Left-arrow, h
376 Scroll view to the left N increments (default: 1).
377 .br
378 File output moves right on the screen.
379 .It Cm $
380 Scroll view to the rightmost position.
381 .It Cm 0
382 Scroll view left to the start of the line.
383 .It Cm Page-down, Space, Ctrl+f, f
384 Move the selection cursor down N pages (default: 1).
385 .It Cm Page-up, Ctrl+b, b
386 Move the selection cursor up N pages (default: 1).
387 .It Cm Ctrl+d, d
388 Move the selection cursor down N half pages (default: 1).
389 .It Cm Ctrl+u, u
390 Move the selection cursor up N half pages (default: 1).
391 .It Cm Home, g
392 Move the selection cursor to the first line of the file.
393 .It Cm End, G
394 Move the selection cursor to the last line of the file.
395 .It Cm Enter
396 Open a
397 .Cm diff
398 view for the currently selected line's commit.
399 .It Cm c
400 Reload the
401 .Cm blame
402 view with the version of the file as found in the currently
403 selected line's commit.
404 .It Cm p
405 Reload the
406 .Cm blame
407 view with the version of the file as found in the parent commit of the
408 currently selected line's commit.
409 .It Cm C
410 Reload the
411 .Cm blame
412 view with the previously blamed commit.
413 .It Cm L
414 Open a
415 .Cm log
416 view for the currently selected annotated line.
417 .It Cm /
418 Prompt for a search pattern and start searching for matching lines.
419 The search pattern is an extended regular expression.
420 Regular expression syntax is documented in
421 .Xr re_format 7 .
422 .It Cm n
423 Find the Nth next line which matches the current search pattern (default: 1).
424 .It Cm N
425 Find the Nth previous line which matches the current search pattern
426 (default: 1).
427 .It Cm A
428 Change the diff algorithm.
429 Supported diff algorithms are Myers (quick and dirty) and
430 Patience (slow and tidy).
431 This is a global setting which also affects the
432 .Cm diff
433 view.
434 .El
435 .Pp
436 The options for
437 .Cm tog blame
438 are as follows:
439 .Bl -tag -width Ds
440 .It Fl c Ar commit
441 Start traversing history at the specified
442 .Ar commit .
443 The expected argument is the name of a branch or a commit ID SHA1 hash.
444 An abbreviated hash argument will be expanded to a full SHA1 hash
445 automatically, provided the abbreviation is unique.
446 .It Fl r Ar repository-path
447 Use the repository at the specified path.
448 If not specified, assume the repository is located at or above the current
449 working directory.
450 If this directory is a
451 .Xr got 1
452 work tree, use the repository path associated with this work tree.
453 .El
454 .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
455 Display the repository tree.
456 If a
457 .Ar path
458 is specified, show tree entries at this path.
459 .Pp
460 Displayed tree entries may carry one of the following trailing annotations:
461 .Bl -column YXZ description
462 .It @ Ta entry is a symbolic link
463 .It / Ta entry is a directory
464 .It * Ta entry is an executable file
465 .It $ Ta entry is a Git submodule
466 .El
467 .Pp
468 Symbolic link entries are also annotated with the target path of the link.
469 .Pp
470 The key bindings for
471 .Cm tog tree
472 are as follows (N denotes optional prefixed count modifier):
473 .Bl -tag -width Ds
474 .It Cm Down-arrow, j, Ctrl-n
475 Move the selection cursor down N lines (default: 1).
476 .It Cm Up-arrow, k, Ctrl-p
477 Move the selection cursor up N lines (default: 1).
478 .It Cm Page-down, Space, Ctrl+f, f
479 Move the selection cursor down N pages (default: 1).
480 .It Cm Page-up, Ctrl+b, b
481 Move the selection cursor up N pages (default: 1).
482 .It Cm Ctrl+d, d
483 Move the selection cursor down N half pages (default: 1).
484 .It Cm Ctrl+u, u
485 Move the selection cursor up N half pages (default: 1).
486 .It Cm Home, g
487 Move the selection cursor to the first entry.
488 .It Cm End, G
489 Move the selection cursor to the last entry.
490 .It Cm Enter
491 Enter the currently selected directory, or switch to the
492 .Cm blame
493 view for the currently selected file.
494 .It Cm L
495 Open a
496 .Cm log
497 view for the currently selected tree entry.
498 .It Cm R
499 Open a
500 .Cm ref
501 view listing all references in the repository.
502 This can then be used to open a new
503 .Cm tree
504 view for arbitrary branches and tags.
505 .It Cm Backspace
506 Move back to the Nth parent directory (default: 1).
507 .It Cm i
508 Show object IDs for all objects displayed in the
509 .Cm tree
510 view.
511 .It Cm /
512 Prompt for a search pattern and start searching for matching tree entries.
513 The search pattern is an extended regular expression which is matched
514 against the tree entry's name.
515 Regular expression syntax is documented in
516 .Xr re_format 7 .
517 .It Cm n
518 Find the Nth next tree entry which matches the current search pattern
519 (default: 1).
520 .It Cm N
521 Find the Nth previous tree entry which matches the current search pattern
522 (default: 1).
523 .El
524 .Pp
525 The options for
526 .Cm tog tree
527 are as follows:
528 .Bl -tag -width Ds
529 .It Fl c Ar commit
530 Start traversing history at the specified
531 .Ar commit .
532 The expected argument is the name of a branch or a commit ID SHA1 hash.
533 An abbreviated hash argument will be expanded to a full SHA1 hash
534 automatically, provided the abbreviation is unique.
535 .It Fl r Ar repository-path
536 Use the repository at the specified path.
537 If not specified, assume the repository is located at or above the current
538 working directory.
539 If this directory is a
540 .Xr got 1
541 work tree, use the repository path associated with this work tree.
542 .El
543 .It Cm ref Oo Fl r Ar repository-path Oc
544 Display references in the repository.
545 .Pp
546 The key bindings for
547 .Cm tog ref
548 are as follows (N denotes optional prefixed count modifier):
549 .Bl -tag -width Ds
550 .It Cm Down-arrow, j, Ctrl-n
551 Move the selection cursor down N lines (default: 1).
552 .It Cm Up-arrow, k, Ctrl-p
553 Move the selection cursor up N lines (default: 1).
554 .It Cm Page-down, Space, Ctrl+f, f
555 Move the selection cursor down N pages (default: 1).
556 .It Cm Page-up, Ctrl+b, b
557 Move the selection cursor up N pages (default: 1).
558 .It Cm Ctrl+d, d
559 Move the selection cursor down N half pages (default: 1).
560 .It Cm Ctrl+u, u
561 Move the selection cursor up N half pages (default: 1).
562 .It Cm Home, g
563 Move the selection cursor to the first reference.
564 .It Cm End, G
565 Move the selection cursor to the last reference.
566 .It Cm Enter
567 Open a
568 .Cm log
569 view which begins traversing history at the commit resolved via the
570 currently selected reference.
571 .It Cm T
572 Open a
573 .Cm tree
574 view showing the tree resolved via the currently selected reference.
575 .It Cm i
576 Show object IDs for all non-symbolic references displayed in the
577 .Cm ref
578 view.
579 .It Cm m
580 Show last modified date of each displayed reference.
581 .It Cm o
582 Toggle display order of references between sort by name and sort by timestamp.
583 .It Cm /
584 Prompt for a search pattern and start searching for matching references.
585 The search pattern is an extended regular expression which is matched
586 against absolute reference names.
587 Regular expression syntax is documented in
588 .Xr re_format 7 .
589 .It Cm n
590 Find the Nth next reference which matches the current search pattern
591 (default: 1).
592 .It Cm N
593 Find the Nth previous reference which matches the current search pattern
594 (default: 1).
595 .It Cm Ctrl+l
596 Reload the list of references displayed by the
597 .Cm ref
598 view.
599 .El
600 .Pp
601 The options for
602 .Cm tog ref
603 are as follows:
604 .Bl -tag -width Ds
605 .It Fl r Ar repository-path
606 Use the repository at the specified path.
607 If not specified, assume the repository is located at or above the current
608 working directory.
609 If this directory is a
610 .Xr got 1
611 work tree, use the repository path associated with this work tree.
612 .El
613 .El
614 .Sh ENVIRONMENT
615 .Bl -tag -width TOG_VIEW_SPLIT_MODE
616 .It Ev TOG_DIFF_ALGORITHM
617 Determines the default diff algorithm used by
618 .Nm .
619 Supported diff algorithms are Myers (quick and dirty) and
620 Patience (slow and tidy).
621 Valid values for
622 .Ev TOG_DIFF_ALGORITHM
623 are
624 .Dq patience
625 and
626 .Dq myers .
627 If unset, the Myers diff algorithm will be used by default.
628 .It Ev TOG_VIEW_SPLIT_MODE
629 Determines the default layout of split-screen views.
630 If set to
631 .Dq h
632 or
633 .Dq H ,
634 .Nm
635 will use horizontal split by default.
636 Otherwise, vertical split will be used.
637 The
638 .Cm S
639 key can be used to switch between vertical and horizontal split layout
640 at run-time.
641 .It Ev TOG_COLORS
642 .Nm
643 shows colorized output if this variable is set to a non-empty value.
644 The default color scheme can be modified by setting the environment
645 variables documented below.
646 The colors available in color schemes are
647 .Dq black ,
648 .Dq red ,
649 .Dq green ,
650 .Dq yellow ,
651 .Dq blue ,
652 .Dq magenta ,
653 .Dq cyan ,
654 and
655 .Dq default
656 which maps to the terminal's default foreground color.
657 .It Ev TOG_COLOR_DIFF_MINUS
658 The color used to mark up removed lines in diffs.
659 If not set, the default value
660 .Dq magenta
661 is used.
662 .It Ev TOG_COLOR_DIFF_PLUS
663 The color used to mark up added lines in diffs.
664 If not set, the default value
665 .Dq cyan
666 is used.
667 .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
668 The color used to mark up chunk header lines in diffs.
669 If not set, the default value
670 .Dq yellow
671 is used.
672 .It Ev TOG_COLOR_DIFF_META
673 The color used to mark up meta data in diffs.
674 If not set, the default value
675 .Dq green
676 is used.
677 .It Ev TOG_COLOR_TREE_SUBMODULE
678 The color used to mark up submodule tree entries.
679 If not set, the default value
680 .Dq magenta
681 is used.
682 .It Ev TOG_COLOR_TREE_SYMLINK
683 The color used to mark up symbolic link tree entries.
684 If not set, the default value
685 .Dq magenta
686 is used.
687 .It Ev TOG_COLOR_TREE_DIRECTORY
688 The color used to mark up directory tree entries.
689 If not set, the default value
690 .Dq cyan
691 is used.
692 .It Ev TOG_COLOR_TREE_EXECUTABLE
693 The color used to mark up executable file tree entries.
694 If not set, the default value
695 .Dq green
696 is used.
697 .It Ev TOG_COLOR_COMMIT
698 The color used to mark up commit IDs.
699 If not set, the default value
700 .Dq green
701 is used.
702 .It Ev TOG_COLOR_AUTHOR
703 The color used to mark up author information.
704 If not set, the default value
705 .Dq cyan
706 is used.
707 .It Ev TOG_COLOR_DATE
708 The color used to mark up date information.
709 If not set, the default value
710 .Dq yellow
711 is used.
712 .It Ev TOG_COLOR_REFS_HEADS
713 The color used to mark up references in the
714 .Dq refs/heads/
715 namespace.
716 If not set, the default value
717 .Dq green
718 is used.
719 .It Ev TOG_COLOR_REFS_TAGS
720 The color used to mark up references in the
721 .Dq refs/tags/
722 namespace.
723 If not set, the default value
724 .Dq magenta
725 is used.
726 .It Ev TOG_COLOR_REFS_REMOTES
727 The color used to mark up references in the
728 .Dq refs/remotes/
729 namespace.
730 If not set, the default value
731 .Dq yellow
732 is used.
733 .It Ev TOG_COLOR_REFS_BACKUP
734 The color used to mark up references in the
735 .Dq refs/got/backup/
736 namespace.
737 If not set, the default value
738 .Dq cyan
739 is used.
740 .El
741 .Sh EXIT STATUS
742 .Ex -std tog
743 .Sh SEE ALSO
744 .Xr got 1 ,
745 .Xr git-repository 5 ,
746 .Xr re_format 7
747 .Sh AUTHORS
748 .An Christian Weisgerber Aq Mt naddy@openbsd.org
749 .An Josh Rickmar Aq Mt jrick@zettaport.com
750 .An Joshua Stein Aq Mt jcs@openbsd.org
751 .An Mark Jamsek Aq Mt mark@jamsek.dev
752 .An Martin Pieuchot Aq Mt mpi@openbsd.org
753 .An Omar Polo Aq Mt op@openbsd.org
754 .An Stefan Sperling Aq Mt stsp@openbsd.org
755 .An Klemens Nanni Aq Mt kn@openbsd.org