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