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