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