Blame


1 030916b5 2018-07-12 stsp .\"
2 030916b5 2018-07-12 stsp .\" Copyright (c) 2018 Stefan Sperling
3 030916b5 2018-07-12 stsp .\"
4 030916b5 2018-07-12 stsp .\" Permission to use, copy, modify, and distribute this software for any
5 030916b5 2018-07-12 stsp .\" purpose with or without fee is hereby granted, provided that the above
6 030916b5 2018-07-12 stsp .\" copyright notice and this permission notice appear in all copies.
7 030916b5 2018-07-12 stsp .\"
8 030916b5 2018-07-12 stsp .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 030916b5 2018-07-12 stsp .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 030916b5 2018-07-12 stsp .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 030916b5 2018-07-12 stsp .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 030916b5 2018-07-12 stsp .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 030916b5 2018-07-12 stsp .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 030916b5 2018-07-12 stsp .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 030916b5 2018-07-12 stsp .\"
16 030916b5 2018-07-12 stsp .Dd $Mdocdate$
17 030916b5 2018-07-12 stsp .Dt TOG 1
18 030916b5 2018-07-12 stsp .Os
19 030916b5 2018-07-12 stsp .Sh NAME
20 030916b5 2018-07-12 stsp .Nm tog
21 aee2a8bd 2019-08-05 stsp .Nd Git repository browser
22 030916b5 2018-07-12 stsp .Sh SYNOPSIS
23 030916b5 2018-07-12 stsp .Nm
24 ee85c5e8 2020-02-29 stsp .Op Ar command
25 030916b5 2018-07-12 stsp .Op Fl h
26 030916b5 2018-07-12 stsp .Op Ar arg ...
27 ee85c5e8 2020-02-29 stsp .Pp
28 ee85c5e8 2020-02-29 stsp .Nm
29 ee85c5e8 2020-02-29 stsp .Ar path
30 030916b5 2018-07-12 stsp .Sh DESCRIPTION
31 030916b5 2018-07-12 stsp .Nm
32 aee2a8bd 2019-08-05 stsp is an interactive read-only browser for Git repositories.
33 030916b5 2018-07-12 stsp This repository format is described in
34 5e5560e1 2018-08-01 stsp .Xr git-repository 5 .
35 030916b5 2018-07-12 stsp .Pp
36 030916b5 2018-07-12 stsp .Nm
37 0cf4efb1 2018-09-29 stsp supports several types of views which display repository data:
38 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
39 9419758a 2019-03-27 stsp .It Log view
40 87aa0e98 2018-08-18 stsp Displays commits in the repository's history.
41 87aa0e98 2018-08-18 stsp This view is displayed initially if no
42 87aa0e98 2018-08-18 stsp .Ar command
43 ee85c5e8 2020-02-29 stsp is specified, or if just a
44 ee85c5e8 2020-02-29 stsp .Ar path
45 87aa0e98 2018-08-18 stsp is specified.
46 9419758a 2019-03-27 stsp .It Diff view
47 87aa0e98 2018-08-18 stsp Displays changes made in a particular commit.
48 9419758a 2019-03-27 stsp .It Blame view
49 87aa0e98 2018-08-18 stsp Displays the line-by-line history of a file.
50 9419758a 2019-03-27 stsp .It Tree view
51 87aa0e98 2018-08-18 stsp Displays the tree corresponding to a particular commit.
52 38cb327b 2020-11-24 stsp .It Ref view
53 38cb327b 2020-11-24 stsp Displays references in the repository.
54 87aa0e98 2018-08-18 stsp .El
55 87aa0e98 2018-08-18 stsp .Pp
56 87aa0e98 2018-08-18 stsp .Nm
57 87aa0e98 2018-08-18 stsp provides global and command-specific key bindings and options.
58 640cd7ff 2022-06-22 mark Some command-specific key bindings may be prefixed with an integer, which is
59 640cd7ff 2022-06-22 mark denoted by N in the descriptions below, and is used as a modifier to the
60 640cd7ff 2022-06-22 mark operation as indicated.
61 640cd7ff 2022-06-22 mark .Nm
62 f0032ce6 2022-07-02 mark will echo digits to the screen when count modifiers are entered, and complete
63 f0032ce6 2022-07-02 mark the sequence upon input of the first non-numeric character.
64 f0032ce6 2022-07-02 mark Count modifiers can be aborted by entering an unmapped key.
65 a6d37fac 2022-07-03 mark Once a compound command is executed, the operation can be cancelled with
66 a6d37fac 2022-07-03 mark .Cm C-g
67 a6d37fac 2022-07-03 mark or
68 a6d37fac 2022-07-03 mark .Cm Backspace .
69 c23f7187 2022-07-12 stsp .Pp
70 87aa0e98 2018-08-18 stsp The global key bindings are:
71 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
72 ec2a9698 2022-09-15 mark .It Cm H, F1
73 ec2a9698 2022-09-15 mark Display run-time help.
74 ec2a9698 2022-09-15 mark Key bindings for the focussed view will be displayed.
75 ec2a9698 2022-09-15 mark Pressing this again inside the help view will toggle the display of
76 ec2a9698 2022-09-15 mark key bindings for all
77 ec2a9698 2022-09-15 mark .Nm
78 ec2a9698 2022-09-15 mark views.
79 87aa0e98 2018-08-18 stsp .It Cm Q
80 87aa0e98 2018-08-18 stsp Quit
81 87aa0e98 2018-08-18 stsp .Nm .
82 87aa0e98 2018-08-18 stsp .It Cm q
83 87aa0e98 2018-08-18 stsp Quit the view which is in focus.
84 87aa0e98 2018-08-18 stsp .It Cm Tab
85 c0d30c23 2018-10-07 stsp Switch focus between views.
86 61417565 2022-06-20 mark .It Cm F
87 c0d30c23 2018-10-07 stsp Toggle fullscreen mode for a split-screen view.
88 e9b3576f 2019-03-27 stsp .Nm
89 67d6e2c2 2022-07-12 stsp will automatically use vertical split-screen views if the size of the
90 67d6e2c2 2022-07-12 stsp terminal window is sufficiently large.
91 d2366e29 2022-07-07 mark .It Cm S
92 2572d286 2022-07-12 stsp Switch the current split-screen layout, and render all active views in
93 2572d286 2022-07-12 stsp this new layout.
94 67d6e2c2 2022-07-12 stsp The split-screen layout can be either vertical or horizontal.
95 2572d286 2022-07-12 stsp If the terminal is not wide enough when switching to a vertical split,
96 2572d286 2022-07-12 stsp views will render in fullscreen.
97 3c1dfe12 2022-07-08 mark .It Cm -
98 3c1dfe12 2022-07-08 mark When in a split-screen view, decrease the size of the focussed split
99 3c1dfe12 2022-07-08 mark N increments (default: 1).
100 3c1dfe12 2022-07-08 mark .It Cm +
101 3c1dfe12 2022-07-08 mark When in a split-screen view, increase the size of the focussed split
102 3c1dfe12 2022-07-08 mark N increments (default: 1).
103 94b80cfa 2022-08-01 mark .It Cm G
104 94b80cfa 2022-08-01 mark Go to line N in the view (default: last line).
105 94b80cfa 2022-08-01 mark .It Cm g
106 94b80cfa 2022-08-01 mark Go to line N in the view (default: first line).
107 87aa0e98 2018-08-18 stsp .El
108 87aa0e98 2018-08-18 stsp .Pp
109 87aa0e98 2018-08-18 stsp Global options must precede the command name, and are as follows:
110 030916b5 2018-07-12 stsp .Bl -tag -width tenletters
111 030916b5 2018-07-12 stsp .It Fl h
112 030916b5 2018-07-12 stsp Display usage information.
113 1795b260 2021-04-02 kn .It Fl V , -version
114 53ccebc2 2019-07-30 stsp Display program version and exit immediately.
115 030916b5 2018-07-12 stsp .El
116 030916b5 2018-07-12 stsp .Pp
117 030916b5 2018-07-12 stsp The commands for
118 030916b5 2018-07-12 stsp .Nm
119 030916b5 2018-07-12 stsp are as follows:
120 030916b5 2018-07-12 stsp .Bl -tag -width blame
121 5fc4f020 2022-08-30 op .It Xo
122 5fc4f020 2022-08-30 op .Cm log
123 5fc4f020 2022-08-30 op .Op Fl b
124 5fc4f020 2022-08-30 op .Op Fl c Ar commit
125 5fc4f020 2022-08-30 op .Op Fl r Ar repository-path
126 5fc4f020 2022-08-30 op .Op Ar path
127 5fc4f020 2022-08-30 op .Xc
128 030916b5 2018-07-12 stsp Display history of a repository.
129 ecb28ae0 2018-07-16 stsp If a
130 ecb28ae0 2018-07-16 stsp .Ar path
131 ecb28ae0 2018-07-16 stsp is specified, show only commits which modified this path.
132 dc990cbf 2020-02-22 stsp If invoked in a work tree, the
133 dc990cbf 2020-02-22 stsp .Ar path
134 dc990cbf 2020-02-22 stsp is interpreted relative to the current working directory,
135 dc990cbf 2020-02-22 stsp and the work tree's path prefix is implicitly prepended.
136 dc990cbf 2020-02-22 stsp Otherwise, the path is interpreted relative to the repository root.
137 030916b5 2018-07-12 stsp .Pp
138 030916b5 2018-07-12 stsp This command is also executed if no explicit command is specified.
139 030916b5 2018-07-12 stsp .Pp
140 030916b5 2018-07-12 stsp The key bindings for
141 030916b5 2018-07-12 stsp .Cm tog log
142 640cd7ff 2022-06-22 mark are as follows (N denotes optional prefixed count modifier):
143 030916b5 2018-07-12 stsp .Bl -tag -width Ds
144 02ffd0d5 2021-10-17 stsp .It Cm Down-arrow, j, >, Full stop, Ctrl-n
145 640cd7ff 2022-06-22 mark Move the selection cursor down N lines (default: 1).
146 02ffd0d5 2021-10-17 stsp .It Cm Up-arrow, k, <, Comma, Ctrl-p
147 640cd7ff 2022-06-22 mark Move the selection cursor up N lines (default: 1).
148 145b6838 2022-06-16 stsp .It Cm Right-arrow, l
149 640cd7ff 2022-06-22 mark Scroll log message field to the right N increments (default: 1).
150 640cd7ff 2022-06-22 mark .br
151 f7443f66 2022-06-16 mark Log message moves left on the screen.
152 145b6838 2022-06-16 stsp .It Cm Left-arrow, h
153 640cd7ff 2022-06-22 mark Scroll log message field to the left N increments (default: 1).
154 640cd7ff 2022-06-22 mark .br
155 f7443f66 2022-06-16 mark Log message moves right on the screen.
156 145b6838 2022-06-16 stsp .It Cm $
157 145b6838 2022-06-16 stsp Scroll log message field to the rightmost position.
158 145b6838 2022-06-16 stsp .It Cm 0
159 145b6838 2022-06-16 stsp Scroll log message field to the leftmost position.
160 48bb96f0 2022-06-20 naddy .It Cm Page-down, Space, Ctrl+f, f
161 640cd7ff 2022-06-22 mark Move the selection cursor down N pages (default: 1).
162 61417565 2022-06-20 mark .It Cm Page-up, Ctrl+b, b
163 640cd7ff 2022-06-22 mark Move the selection cursor up N pages (default: 1).
164 33c3719a 2022-06-15 stsp .It Cm Ctrl+d, d
165 640cd7ff 2022-06-22 mark Move the selection cursor down N half pages (default: 1).
166 33c3719a 2022-06-15 stsp .It Cm Ctrl+u, u
167 640cd7ff 2022-06-22 mark Move the selection cursor up N half pages (default: 1).
168 27890b18 2021-08-30 stsp .It Cm Home, g
169 912a3f79 2021-08-30 j Move the cursor to the newest commit.
170 912a3f79 2021-08-30 j .It Cm End, G
171 912a3f79 2021-08-30 j Move the cursor to the oldest commit.
172 1dd93b2a 2021-08-30 stsp This will traverse all commits on the current branch which may take
173 1dd93b2a 2021-08-30 stsp a long time depending on the number of commits in branch history.
174 e38d4cde 2022-03-21 naddy If needed, this operation can be cancelled with
175 a6d37fac 2022-07-03 mark .Cm C-g
176 a6d37fac 2022-07-03 mark or
177 9ebbe6e1 2021-08-30 stsp .Cm Backspace .
178 48bb96f0 2022-06-20 naddy .It Cm Enter
179 c0d30c23 2018-10-07 stsp Open a
180 030916b5 2018-07-12 stsp .Cm diff
181 030916b5 2018-07-12 stsp view showing file changes made in the currently selected commit.
182 5e98fb33 2022-07-22 mark .It Cm T
183 a60a9dc4 2019-05-13 jcs Open a
184 030916b5 2018-07-12 stsp .Cm tree
185 030916b5 2018-07-12 stsp view showing the tree for the currently selected commit.
186 5036bf37 2018-09-24 stsp .It Cm Backspace
187 26f0cb24 2021-08-30 j Show log entries for the parent directory of the currently selected path.
188 26f0cb24 2021-08-30 j However when an active search is in progress or when additional commits
189 26f0cb24 2021-08-30 j are loaded,
190 678cbce5 2019-07-28 stsp .Cm Backspace
191 26f0cb24 2021-08-30 j aborts the running operation.
192 60493ae3 2019-06-20 stsp .It Cm /
193 60493ae3 2019-06-20 stsp Prompt for a search pattern and start searching for matching commits.
194 60493ae3 2019-06-20 stsp The search pattern is an extended regular expression which is matched
195 df0b3d8a 2019-06-28 stsp against a commit's author name, committer name, log message, and
196 df0b3d8a 2019-06-28 stsp commit ID SHA1 hash.
197 e6c76b79 2019-06-21 stsp Regular expression syntax is documented in
198 e6c76b79 2019-06-21 stsp .Xr re_format 7 .
199 568eae95 2022-09-11 mark .It Cm &
200 568eae95 2022-09-11 mark Like
201 568eae95 2022-09-11 mark .Cm /
202 568eae95 2022-09-11 mark but hides the non-matching commits.
203 568eae95 2022-09-11 mark Use the empty string as a pattern to display all commits.
204 60493ae3 2019-06-20 stsp .It Cm n
205 640cd7ff 2022-06-22 mark Find the Nth next commit which matches the current search pattern (default: 1).
206 640cd7ff 2022-06-22 mark .br
207 a6d37fac 2022-07-03 mark Searching continues until either a match is found or
208 a6d37fac 2022-07-03 mark .Cm C-g
209 a6d37fac 2022-07-03 mark or the
210 678cbce5 2019-07-28 stsp .Cm Backspace
211 678cbce5 2019-07-28 stsp key is pressed.
212 b1bf1435 2019-06-21 stsp .It Cm N
213 640cd7ff 2022-06-22 mark Find the Nth previous commit which matches the current search pattern
214 640cd7ff 2022-06-22 mark (default: 1).
215 640cd7ff 2022-06-22 mark .br
216 a6d37fac 2022-07-03 mark Searching continues until either a match is found or
217 a6d37fac 2022-07-03 mark .Cm C-g
218 a6d37fac 2022-07-03 mark or the
219 678cbce5 2019-07-28 stsp .Cm Backspace
220 678cbce5 2019-07-28 stsp key is pressed.
221 bf0668dd 2019-06-26 stsp .It Cm Ctrl+l
222 01ca22b1 2020-12-07 stsp Reload the
223 01ca22b1 2020-12-07 stsp .Cm log
224 01ca22b1 2020-12-07 stsp view with new commits found in the repository.
225 b672a97a 2020-01-27 stsp .It Cm B
226 01ca22b1 2020-12-07 stsp Reload the
227 01ca22b1 2020-12-07 stsp .Cm log
228 01ca22b1 2020-12-07 stsp view and toggle display of merged commits.
229 b672a97a 2020-01-27 stsp The
230 b672a97a 2020-01-27 stsp .Fl b
231 b672a97a 2020-01-27 stsp option determines whether merged commits are displayed initially.
232 5e98fb33 2022-07-22 mark .It Cm R
233 38cb327b 2020-11-24 stsp Open a
234 38cb327b 2020-11-24 stsp .Cm ref
235 38cb327b 2020-11-24 stsp view listing all references in the repository.
236 38cb327b 2020-11-24 stsp This can then be used to open a new
237 38cb327b 2020-11-24 stsp .Cm log
238 38cb327b 2020-11-24 stsp view for arbitrary branches and tags.
239 10aab77f 2022-07-19 op .It Cm @
240 10aab77f 2022-07-19 op Toggle between showing the author and the committer name.
241 030916b5 2018-07-12 stsp .El
242 030916b5 2018-07-12 stsp .Pp
243 030916b5 2018-07-12 stsp The options for
244 030916b5 2018-07-12 stsp .Cm tog log
245 030916b5 2018-07-12 stsp are as follows:
246 030916b5 2018-07-12 stsp .Bl -tag -width Ds
247 b672a97a 2020-01-27 stsp .It Fl b
248 1137e0ae 2020-01-27 stsp Display individual commits which were merged into the current branch
249 1137e0ae 2020-01-27 stsp from other branches.
250 b672a97a 2020-01-27 stsp By default,
251 b672a97a 2020-01-27 stsp .Cm tog log
252 b672a97a 2020-01-27 stsp shows the linear history of the current branch only.
253 b672a97a 2020-01-27 stsp The
254 b672a97a 2020-01-27 stsp .Cm B
255 b672a97a 2020-01-27 stsp key binding can be used to toggle display of merged commits at run-time.
256 030916b5 2018-07-12 stsp .It Fl c Ar commit
257 030916b5 2018-07-12 stsp Start traversing history at the specified
258 030916b5 2018-07-12 stsp .Ar commit .
259 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
260 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
261 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
262 19e70ad6 2019-05-14 stsp If this option is not specified, default to the work tree's current branch
263 19e70ad6 2019-05-14 stsp if invoked in a work tree, or to the repository's HEAD reference.
264 ecb28ae0 2018-07-16 stsp .It Fl r Ar repository-path
265 ecb28ae0 2018-07-16 stsp Use the repository at the specified path.
266 ecb28ae0 2018-07-16 stsp If not specified, assume the repository is located at or above the current
267 ecb28ae0 2018-07-16 stsp working directory.
268 212b39d1 2020-02-24 naddy If this directory is a
269 212b39d1 2020-02-24 naddy .Xr got 1
270 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
271 030916b5 2018-07-12 stsp .El
272 5fc4f020 2022-08-30 op .It Xo
273 5fc4f020 2022-08-30 op .Cm diff
274 5fc4f020 2022-08-30 op .Op Fl aw
275 5fc4f020 2022-08-30 op .Op Fl C Ar number
276 5fc4f020 2022-08-30 op .Op Fl r Ar repository-path
277 5fc4f020 2022-08-30 op .Ar object1
278 5fc4f020 2022-08-30 op .Ar object2
279 5fc4f020 2022-08-30 op .Xc
280 030916b5 2018-07-12 stsp Display the differences between two objects in the repository.
281 3dbaef42 2020-11-24 stsp Treat each of the two arguments as a reference, a tag name, or an object
282 3dbaef42 2020-11-24 stsp ID SHA1 hash, and display differences between the corresponding objects.
283 3dbaef42 2020-11-24 stsp Both objects must be of the same type (blobs, trees, or commits).
284 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
285 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
286 030916b5 2018-07-12 stsp .Pp
287 030916b5 2018-07-12 stsp The key bindings for
288 030916b5 2018-07-12 stsp .Cm tog diff
289 640cd7ff 2022-06-22 mark are as follows (N denotes optional prefixed count modifier):
290 030916b5 2018-07-12 stsp .Bl -tag -width Ds
291 64453f7e 2020-11-21 stsp .It Cm a
292 64453f7e 2020-11-21 stsp Toggle treatment of file contents as ASCII text even if binary data was
293 64453f7e 2020-11-21 stsp detected.
294 02ffd0d5 2021-10-17 stsp .It Cm Down-arrow, j, Ctrl-n
295 640cd7ff 2022-06-22 mark Scroll down N lines (default: 1).
296 02ffd0d5 2021-10-17 stsp .It Cm Up-arrow, k, Ctrl-p
297 640cd7ff 2022-06-22 mark Scroll up N lines (default: 1).
298 145b6838 2022-06-16 stsp .It Cm Right-arrow, l
299 640cd7ff 2022-06-22 mark Scroll view to the right N increments (default: 1).
300 640cd7ff 2022-06-22 mark .br
301 f7443f66 2022-06-16 mark Diff output moves left on the screen.
302 145b6838 2022-06-16 stsp .It Cm Left-arrow, h
303 640cd7ff 2022-06-22 mark Scroll view to the left N increments (default: 1).
304 640cd7ff 2022-06-22 mark .br
305 f7443f66 2022-06-16 mark Diff output moves right on the screen.
306 145b6838 2022-06-16 stsp .It Cm $
307 145b6838 2022-06-16 stsp Scroll view to the rightmost position.
308 145b6838 2022-06-16 stsp .It Cm 0
309 145b6838 2022-06-16 stsp Scroll view left to the start of the line.
310 61417565 2022-06-20 mark .It Cm Page-down, Space, Ctrl+f, f
311 640cd7ff 2022-06-22 mark Scroll down N pages (default: 1).
312 61417565 2022-06-20 mark .It Cm Page-up, Ctrl+b, b
313 640cd7ff 2022-06-22 mark Scroll up N pages (default: 1).
314 33c3719a 2022-06-15 stsp .It Cm Ctrl+d, d
315 640cd7ff 2022-06-22 mark Scroll down N half pages (default: 1).
316 33c3719a 2022-06-15 stsp .It Cm Ctrl+u, u
317 640cd7ff 2022-06-22 mark Scroll up N half pages (default: 1).
318 00f6361c 2021-08-30 naddy .It Cm Home, g
319 912a3f79 2021-08-30 j Scroll to the top of the view.
320 912a3f79 2021-08-30 j .It Cm End, G
321 912a3f79 2021-08-30 j Scroll to the bottom of the view.
322 c7d5c43c 2022-08-04 mark .It Cm \&(
323 c7d5c43c 2022-08-04 mark Navigate to the Nth previous file in the diff (default: 1).
324 c7d5c43c 2022-08-04 mark .It Cm \&)
325 c7d5c43c 2022-08-04 mark Navigate to the Nth next file in the diff (default: 1).
326 c7d5c43c 2022-08-04 mark .It Cm \&{
327 c7d5c43c 2022-08-04 mark Navigate to the Nth previous hunk in the diff (default: 1).
328 c7d5c43c 2022-08-04 mark .It Cm \&}
329 c7d5c43c 2022-08-04 mark Navigate to the Nth next hunk in the diff (default: 1).
330 dfc23429 2019-08-11 stsp .It Cm \&[
331 640cd7ff 2022-06-22 mark Reduce diff context by N lines (default: 1).
332 dfc23429 2019-08-11 stsp .It Cm \&]
333 640cd7ff 2022-06-22 mark Increase diff context by N lines (default: 1).
334 2b3e6702 2022-07-20 mark .It Cm <, Comma, K
335 01ca22b1 2020-12-07 stsp If the
336 01ca22b1 2020-12-07 stsp .Cm diff
337 01ca22b1 2020-12-07 stsp view was opened via the
338 01ca22b1 2020-12-07 stsp .Cm log
339 c0f61fa4 2022-07-11 mark view, move to the Nth previous (younger) commit.
340 c0f61fa4 2022-07-11 mark If the diff was opened via the
341 c0f61fa4 2022-07-11 mark .Cm blame
342 c0f61fa4 2022-07-11 mark view, move to the Nth previous line and load the corresponding commit
343 c0f61fa4 2022-07-11 mark (default: 1).
344 2b3e6702 2022-07-20 mark .It Cm >, Full stop, J
345 01ca22b1 2020-12-07 stsp If the
346 01ca22b1 2020-12-07 stsp .Cm diff
347 01ca22b1 2020-12-07 stsp view was opened via the
348 01ca22b1 2020-12-07 stsp .Cm log
349 c0f61fa4 2022-07-11 mark view, move to the Nth next (older) commit.
350 c0f61fa4 2022-07-11 mark If the diff was opened via the
351 c0f61fa4 2022-07-11 mark .Cm blame
352 c0f61fa4 2022-07-11 mark view, move to the Nth next line and load the corresponding commit (default: 1).
353 66dc9065 2020-02-15 stsp .It Cm /
354 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
355 66dc9065 2020-02-15 stsp The search pattern is an extended regular expression.
356 66dc9065 2020-02-15 stsp Regular expression syntax is documented in
357 66dc9065 2020-02-15 stsp .Xr re_format 7 .
358 66dc9065 2020-02-15 stsp .It Cm n
359 640cd7ff 2022-06-22 mark Find the Nth next line which matches the current search pattern (default: 1).
360 66dc9065 2020-02-15 stsp .It Cm N
361 640cd7ff 2022-06-22 mark Find the Nth previous line which matches the current search pattern
362 640cd7ff 2022-06-22 mark (default: 1).
363 3dbaef42 2020-11-24 stsp .It Cm w
364 3dbaef42 2020-11-24 stsp Toggle display of whitespace-only changes.
365 917d79a7 2022-07-01 stsp .It Cm A
366 917d79a7 2022-07-01 stsp Change the diff algorithm.
367 41e8d27d 2022-07-03 stsp Supported diff algorithms are Myers (quick and dirty) and
368 41e8d27d 2022-07-03 stsp Patience (slow and tidy).
369 917d79a7 2022-07-01 stsp This is a global setting which also affects the
370 917d79a7 2022-07-01 stsp .Cm blame
371 917d79a7 2022-07-01 stsp view.
372 030916b5 2018-07-12 stsp .El
373 09b5bff8 2020-02-23 naddy .Pp
374 09b5bff8 2020-02-23 naddy The options for
375 09b5bff8 2020-02-23 naddy .Cm tog diff
376 09b5bff8 2020-02-23 naddy are as follows:
377 09b5bff8 2020-02-23 naddy .Bl -tag -width Ds
378 64453f7e 2020-11-21 stsp .It Fl a
379 64453f7e 2020-11-21 stsp Treat file contents as ASCII text even if binary data is detected.
380 3dbaef42 2020-11-24 stsp .It Fl C Ar number
381 3dbaef42 2020-11-24 stsp Set the number of context lines shown in the diff.
382 3dbaef42 2020-11-24 stsp By default, 3 lines of context are shown.
383 09b5bff8 2020-02-23 naddy .It Fl r Ar repository-path
384 09b5bff8 2020-02-23 naddy Use the repository at the specified path.
385 09b5bff8 2020-02-23 naddy If not specified, assume the repository is located at or above the current
386 09b5bff8 2020-02-23 naddy working directory.
387 212b39d1 2020-02-24 naddy If this directory is a
388 212b39d1 2020-02-24 naddy .Xr got 1
389 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
390 3dbaef42 2020-11-24 stsp .It Fl w
391 3dbaef42 2020-11-24 stsp Ignore whitespace-only changes.
392 09b5bff8 2020-02-23 naddy .El
393 5fc4f020 2022-08-30 op .It Xo
394 5fc4f020 2022-08-30 op .Cm blame
395 5fc4f020 2022-08-30 op .Op Fl c Ar commit
396 5fc4f020 2022-08-30 op .Op Fl r Ar repository-path
397 5fc4f020 2022-08-30 op .Ar path
398 5fc4f020 2022-08-30 op .Xc
399 030916b5 2018-07-12 stsp Display line-by-line history of a file at the specified path.
400 030916b5 2018-07-12 stsp .Pp
401 030916b5 2018-07-12 stsp The key bindings for
402 030916b5 2018-07-12 stsp .Cm tog blame
403 640cd7ff 2022-06-22 mark are as follows (N denotes optional prefixed count modifier):
404 030916b5 2018-07-12 stsp .Bl -tag -width Ds
405 02ffd0d5 2021-10-17 stsp .It Cm Down-arrow, j, Ctrl-n
406 640cd7ff 2022-06-22 mark Move the selection cursor down N pages (default: 1).
407 02ffd0d5 2021-10-17 stsp .It Cm Up-arrow, k, Ctrl-p
408 640cd7ff 2022-06-22 mark Move the selection cursor up N pages (default: 1).
409 145b6838 2022-06-16 stsp .It Cm Right-arrow, l
410 640cd7ff 2022-06-22 mark Scroll view to the right N increments (default: 1).
411 640cd7ff 2022-06-22 mark .br
412 f7443f66 2022-06-16 mark File output moves left on the screen.
413 145b6838 2022-06-16 stsp .It Cm Left-arrow, h
414 640cd7ff 2022-06-22 mark Scroll view to the left N increments (default: 1).
415 640cd7ff 2022-06-22 mark .br
416 f7443f66 2022-06-16 mark File output moves right on the screen.
417 145b6838 2022-06-16 stsp .It Cm $
418 145b6838 2022-06-16 stsp Scroll view to the rightmost position.
419 145b6838 2022-06-16 stsp .It Cm 0
420 145b6838 2022-06-16 stsp Scroll view left to the start of the line.
421 61417565 2022-06-20 mark .It Cm Page-down, Space, Ctrl+f, f
422 640cd7ff 2022-06-22 mark Move the selection cursor down N pages (default: 1).
423 61417565 2022-06-20 mark .It Cm Page-up, Ctrl+b, b
424 640cd7ff 2022-06-22 mark Move the selection cursor up N pages (default: 1).
425 33c3719a 2022-06-15 stsp .It Cm Ctrl+d, d
426 640cd7ff 2022-06-22 mark Move the selection cursor down N half pages (default: 1).
427 33c3719a 2022-06-15 stsp .It Cm Ctrl+u, u
428 640cd7ff 2022-06-22 mark Move the selection cursor up N half pages (default: 1).
429 4deef56f 2021-09-02 naddy .It Cm Home, g
430 4deef56f 2021-09-02 naddy Move the selection cursor to the first line of the file.
431 4deef56f 2021-09-02 naddy .It Cm End, G
432 4deef56f 2021-09-02 naddy Move the selection cursor to the last line of the file.
433 030916b5 2018-07-12 stsp .It Cm Enter
434 c0d30c23 2018-10-07 stsp Open a
435 030916b5 2018-07-12 stsp .Cm diff
436 030916b5 2018-07-12 stsp view for the currently selected line's commit.
437 61417565 2022-06-20 mark .It Cm c
438 c0d30c23 2018-10-07 stsp Reload the
439 030916b5 2018-07-12 stsp .Cm blame
440 c0d30c23 2018-10-07 stsp view with the version of the file as found in the currently
441 c0d30c23 2018-10-07 stsp selected line's commit.
442 7a2921f9 2018-07-12 stsp .It Cm p
443 c0d30c23 2018-10-07 stsp Reload the
444 7a2921f9 2018-07-12 stsp .Cm blame
445 c0d30c23 2018-10-07 stsp view with the version of the file as found in the parent commit of the
446 c0d30c23 2018-10-07 stsp currently selected line's commit.
447 61417565 2022-06-20 mark .It Cm C
448 c0d30c23 2018-10-07 stsp Reload the
449 030916b5 2018-07-12 stsp .Cm blame
450 c0d30c23 2018-10-07 stsp view with the previously blamed commit.
451 05f04cdf 2022-07-20 mark .It Cm L
452 05f04cdf 2022-07-20 mark Open a
453 05f04cdf 2022-07-20 mark .Cm log
454 05f04cdf 2022-07-20 mark view for the currently selected annotated line.
455 6c4c42e0 2019-06-24 stsp .It Cm /
456 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
457 6c4c42e0 2019-06-24 stsp The search pattern is an extended regular expression.
458 6c4c42e0 2019-06-24 stsp Regular expression syntax is documented in
459 6c4c42e0 2019-06-24 stsp .Xr re_format 7 .
460 6c4c42e0 2019-06-24 stsp .It Cm n
461 640cd7ff 2022-06-22 mark Find the Nth next line which matches the current search pattern (default: 1).
462 6c4c42e0 2019-06-24 stsp .It Cm N
463 640cd7ff 2022-06-22 mark Find the Nth previous line which matches the current search pattern
464 640cd7ff 2022-06-22 mark (default: 1).
465 917d79a7 2022-07-01 stsp .It Cm A
466 917d79a7 2022-07-01 stsp Change the diff algorithm.
467 41e8d27d 2022-07-03 stsp Supported diff algorithms are Myers (quick and dirty) and
468 41e8d27d 2022-07-03 stsp Patience (slow and tidy).
469 917d79a7 2022-07-01 stsp This is a global setting which also affects the
470 917d79a7 2022-07-01 stsp .Cm diff
471 917d79a7 2022-07-01 stsp view.
472 030916b5 2018-07-12 stsp .El
473 030916b5 2018-07-12 stsp .Pp
474 030916b5 2018-07-12 stsp The options for
475 030916b5 2018-07-12 stsp .Cm tog blame
476 030916b5 2018-07-12 stsp are as follows:
477 030916b5 2018-07-12 stsp .Bl -tag -width Ds
478 030916b5 2018-07-12 stsp .It Fl c Ar commit
479 030916b5 2018-07-12 stsp Start traversing history at the specified
480 030916b5 2018-07-12 stsp .Ar commit .
481 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
482 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
483 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
484 69069811 2018-08-02 stsp .It Fl r Ar repository-path
485 69069811 2018-08-02 stsp Use the repository at the specified path.
486 69069811 2018-08-02 stsp If not specified, assume the repository is located at or above the current
487 69069811 2018-08-02 stsp working directory.
488 212b39d1 2020-02-24 naddy If this directory is a
489 212b39d1 2020-02-24 naddy .Xr got 1
490 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
491 030916b5 2018-07-12 stsp .El
492 5fc4f020 2022-08-30 op .It Xo
493 5fc4f020 2022-08-30 op .Cm tree
494 5fc4f020 2022-08-30 op .Op Fl c Ar commit
495 5fc4f020 2022-08-30 op .Op Fl r Ar repository-path
496 5fc4f020 2022-08-30 op .Op Ar path
497 5fc4f020 2022-08-30 op .Xc
498 030916b5 2018-07-12 stsp Display the repository tree.
499 55cccc34 2020-02-20 stsp If a
500 55cccc34 2020-02-20 stsp .Ar path
501 55cccc34 2020-02-20 stsp is specified, show tree entries at this path.
502 030916b5 2018-07-12 stsp .Pp
503 848d6979 2019-08-12 stsp Displayed tree entries may carry one of the following trailing annotations:
504 848d6979 2019-08-12 stsp .Bl -column YXZ description
505 848d6979 2019-08-12 stsp .It @ Ta entry is a symbolic link
506 848d6979 2019-08-12 stsp .It / Ta entry is a directory
507 848d6979 2019-08-12 stsp .It * Ta entry is an executable file
508 63c5ca5d 2019-08-24 stsp .It $ Ta entry is a Git submodule
509 848d6979 2019-08-12 stsp .El
510 0d6c6ee3 2020-05-20 stsp .Pp
511 0d6c6ee3 2020-05-20 stsp Symbolic link entries are also annotated with the target path of the link.
512 848d6979 2019-08-12 stsp .Pp
513 030916b5 2018-07-12 stsp The key bindings for
514 030916b5 2018-07-12 stsp .Cm tog tree
515 640cd7ff 2022-06-22 mark are as follows (N denotes optional prefixed count modifier):
516 030916b5 2018-07-12 stsp .Bl -tag -width Ds
517 02ffd0d5 2021-10-17 stsp .It Cm Down-arrow, j, Ctrl-n
518 640cd7ff 2022-06-22 mark Move the selection cursor down N lines (default: 1).
519 02ffd0d5 2021-10-17 stsp .It Cm Up-arrow, k, Ctrl-p
520 640cd7ff 2022-06-22 mark Move the selection cursor up N lines (default: 1).
521 48bb96f0 2022-06-20 naddy .It Cm Page-down, Space, Ctrl+f, f
522 640cd7ff 2022-06-22 mark Move the selection cursor down N pages (default: 1).
523 61417565 2022-06-20 mark .It Cm Page-up, Ctrl+b, b
524 640cd7ff 2022-06-22 mark Move the selection cursor up N pages (default: 1).
525 33c3719a 2022-06-15 stsp .It Cm Ctrl+d, d
526 640cd7ff 2022-06-22 mark Move the selection cursor down N half pages (default: 1).
527 33c3719a 2022-06-15 stsp .It Cm Ctrl+u, u
528 640cd7ff 2022-06-22 mark Move the selection cursor up N half pages (default: 1).
529 e4526bf5 2021-09-03 naddy .It Cm Home, g
530 e4526bf5 2021-09-03 naddy Move the selection cursor to the first entry.
531 e4526bf5 2021-09-03 naddy .It Cm End, G
532 e4526bf5 2021-09-03 naddy Move the selection cursor to the last entry.
533 030916b5 2018-07-12 stsp .It Cm Enter
534 030916b5 2018-07-12 stsp Enter the currently selected directory, or switch to the
535 030916b5 2018-07-12 stsp .Cm blame
536 030916b5 2018-07-12 stsp view for the currently selected file.
537 5e98fb33 2022-07-22 mark .It Cm L
538 c0d30c23 2018-10-07 stsp Open a
539 69efd4c4 2018-07-18 stsp .Cm log
540 69efd4c4 2018-07-18 stsp view for the currently selected tree entry.
541 5e98fb33 2022-07-22 mark .It Cm R
542 152c1c93 2020-11-29 stsp Open a
543 152c1c93 2020-11-29 stsp .Cm ref
544 152c1c93 2020-11-29 stsp view listing all references in the repository.
545 152c1c93 2020-11-29 stsp This can then be used to open a new
546 152c1c93 2020-11-29 stsp .Cm tree
547 152c1c93 2020-11-29 stsp view for arbitrary branches and tags.
548 7837eeac 2018-09-24 stsp .It Cm Backspace
549 640cd7ff 2022-06-22 mark Move back to the Nth parent directory (default: 1).
550 030916b5 2018-07-12 stsp .It Cm i
551 c0d30c23 2018-10-07 stsp Show object IDs for all objects displayed in the
552 030916b5 2018-07-12 stsp .Cm tree
553 030916b5 2018-07-12 stsp view.
554 4eec20aa 2019-06-22 stsp .It Cm /
555 4eec20aa 2019-06-22 stsp Prompt for a search pattern and start searching for matching tree entries.
556 4eec20aa 2019-06-22 stsp The search pattern is an extended regular expression which is matched
557 4eec20aa 2019-06-22 stsp against the tree entry's name.
558 4eec20aa 2019-06-22 stsp Regular expression syntax is documented in
559 4eec20aa 2019-06-22 stsp .Xr re_format 7 .
560 4eec20aa 2019-06-22 stsp .It Cm n
561 640cd7ff 2022-06-22 mark Find the Nth next tree entry which matches the current search pattern
562 640cd7ff 2022-06-22 mark (default: 1).
563 4eec20aa 2019-06-22 stsp .It Cm N
564 640cd7ff 2022-06-22 mark Find the Nth previous tree entry which matches the current search pattern
565 640cd7ff 2022-06-22 mark (default: 1).
566 030916b5 2018-07-12 stsp .El
567 030916b5 2018-07-12 stsp .Pp
568 030916b5 2018-07-12 stsp The options for
569 030916b5 2018-07-12 stsp .Cm tog tree
570 030916b5 2018-07-12 stsp are as follows:
571 030916b5 2018-07-12 stsp .Bl -tag -width Ds
572 030916b5 2018-07-12 stsp .It Fl c Ar commit
573 030916b5 2018-07-12 stsp Start traversing history at the specified
574 030916b5 2018-07-12 stsp .Ar commit .
575 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
576 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
577 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
578 38cb327b 2020-11-24 stsp .It Fl r Ar repository-path
579 38cb327b 2020-11-24 stsp Use the repository at the specified path.
580 38cb327b 2020-11-24 stsp If not specified, assume the repository is located at or above the current
581 38cb327b 2020-11-24 stsp working directory.
582 38cb327b 2020-11-24 stsp If this directory is a
583 38cb327b 2020-11-24 stsp .Xr got 1
584 38cb327b 2020-11-24 stsp work tree, use the repository path associated with this work tree.
585 38cb327b 2020-11-24 stsp .El
586 5fc4f020 2022-08-30 op .It Cm ref Op Fl r Ar repository-path
587 38cb327b 2020-11-24 stsp Display references in the repository.
588 38cb327b 2020-11-24 stsp .Pp
589 38cb327b 2020-11-24 stsp The key bindings for
590 38cb327b 2020-11-24 stsp .Cm tog ref
591 640cd7ff 2022-06-22 mark are as follows (N denotes optional prefixed count modifier):
592 38cb327b 2020-11-24 stsp .Bl -tag -width Ds
593 02ffd0d5 2021-10-17 stsp .It Cm Down-arrow, j, Ctrl-n
594 640cd7ff 2022-06-22 mark Move the selection cursor down N lines (default: 1).
595 02ffd0d5 2021-10-17 stsp .It Cm Up-arrow, k, Ctrl-p
596 640cd7ff 2022-06-22 mark Move the selection cursor up N lines (default: 1).
597 48bb96f0 2022-06-20 naddy .It Cm Page-down, Space, Ctrl+f, f
598 640cd7ff 2022-06-22 mark Move the selection cursor down N pages (default: 1).
599 61417565 2022-06-20 mark .It Cm Page-up, Ctrl+b, b
600 640cd7ff 2022-06-22 mark Move the selection cursor up N pages (default: 1).
601 33c3719a 2022-06-15 stsp .It Cm Ctrl+d, d
602 640cd7ff 2022-06-22 mark Move the selection cursor down N half pages (default: 1).
603 33c3719a 2022-06-15 stsp .It Cm Ctrl+u, u
604 640cd7ff 2022-06-22 mark Move the selection cursor up N half pages (default: 1).
605 e4526bf5 2021-09-03 naddy .It Cm Home, g
606 e4526bf5 2021-09-03 naddy Move the selection cursor to the first reference.
607 e4526bf5 2021-09-03 naddy .It Cm End, G
608 e4526bf5 2021-09-03 naddy Move the selection cursor to the last reference.
609 38cb327b 2020-11-24 stsp .It Cm Enter
610 01ca22b1 2020-12-07 stsp Open a
611 01ca22b1 2020-12-07 stsp .Cm log
612 01ca22b1 2020-12-07 stsp view which begins traversing history at the commit resolved via the
613 38cb327b 2020-11-24 stsp currently selected reference.
614 5e98fb33 2022-07-22 mark .It Cm T
615 c42c9805 2020-11-24 stsp Open a
616 c42c9805 2020-11-24 stsp .Cm tree
617 c42c9805 2020-11-24 stsp view showing the tree resolved via the currently selected reference.
618 38cb327b 2020-11-24 stsp .It Cm i
619 38cb327b 2020-11-24 stsp Show object IDs for all non-symbolic references displayed in the
620 38cb327b 2020-11-24 stsp .Cm ref
621 38cb327b 2020-11-24 stsp view.
622 b4996bee 2022-06-16 stsp .It Cm m
623 b4996bee 2022-06-16 stsp Show last modified date of each displayed reference.
624 07a065fe 2021-11-20 stsp .It Cm o
625 7f66531d 2021-11-16 stsp Toggle display order of references between sort by name and sort by timestamp.
626 38cb327b 2020-11-24 stsp .It Cm /
627 38cb327b 2020-11-24 stsp Prompt for a search pattern and start searching for matching references.
628 38cb327b 2020-11-24 stsp The search pattern is an extended regular expression which is matched
629 38cb327b 2020-11-24 stsp against absolute reference names.
630 38cb327b 2020-11-24 stsp Regular expression syntax is documented in
631 38cb327b 2020-11-24 stsp .Xr re_format 7 .
632 38cb327b 2020-11-24 stsp .It Cm n
633 640cd7ff 2022-06-22 mark Find the Nth next reference which matches the current search pattern
634 640cd7ff 2022-06-22 mark (default: 1).
635 38cb327b 2020-11-24 stsp .It Cm N
636 640cd7ff 2022-06-22 mark Find the Nth previous reference which matches the current search pattern
637 640cd7ff 2022-06-22 mark (default: 1).
638 38cb327b 2020-11-24 stsp .It Cm Ctrl+l
639 38cb327b 2020-11-24 stsp Reload the list of references displayed by the
640 38cb327b 2020-11-24 stsp .Cm ref
641 38cb327b 2020-11-24 stsp view.
642 38cb327b 2020-11-24 stsp .El
643 38cb327b 2020-11-24 stsp .Pp
644 38cb327b 2020-11-24 stsp The options for
645 38cb327b 2020-11-24 stsp .Cm tog ref
646 38cb327b 2020-11-24 stsp are as follows:
647 38cb327b 2020-11-24 stsp .Bl -tag -width Ds
648 74283ab8 2020-02-07 stsp .It Fl r Ar repository-path
649 74283ab8 2020-02-07 stsp Use the repository at the specified path.
650 74283ab8 2020-02-07 stsp If not specified, assume the repository is located at or above the current
651 74283ab8 2020-02-07 stsp working directory.
652 74283ab8 2020-02-07 stsp If this directory is a
653 74283ab8 2020-02-07 stsp .Xr got 1
654 74283ab8 2020-02-07 stsp work tree, use the repository path associated with this work tree.
655 030916b5 2018-07-12 stsp .El
656 030916b5 2018-07-12 stsp .El
657 6d17833f 2019-11-08 stsp .Sh ENVIRONMENT
658 d2366e29 2022-07-07 mark .Bl -tag -width TOG_VIEW_SPLIT_MODE
659 917d79a7 2022-07-01 stsp .It Ev TOG_DIFF_ALGORITHM
660 917d79a7 2022-07-01 stsp Determines the default diff algorithm used by
661 917d79a7 2022-07-01 stsp .Nm .
662 41e8d27d 2022-07-03 stsp Supported diff algorithms are Myers (quick and dirty) and
663 41e8d27d 2022-07-03 stsp Patience (slow and tidy).
664 41e8d27d 2022-07-03 stsp Valid values for
665 41e8d27d 2022-07-03 stsp .Ev TOG_DIFF_ALGORITHM
666 41e8d27d 2022-07-03 stsp are
667 917d79a7 2022-07-01 stsp .Dq patience
668 917d79a7 2022-07-01 stsp and
669 917d79a7 2022-07-01 stsp .Dq myers .
670 917d79a7 2022-07-01 stsp If unset, the Myers diff algorithm will be used by default.
671 619b3b49 2022-07-04 stsp .It Ev TOG_VIEW_SPLIT_MODE
672 2572d286 2022-07-12 stsp Determines the default layout of split-screen views.
673 619b3b49 2022-07-04 stsp If set to
674 619b3b49 2022-07-04 stsp .Dq h
675 2572d286 2022-07-12 stsp or
676 2572d286 2022-07-12 stsp .Dq H ,
677 2572d286 2022-07-12 stsp .Nm
678 2572d286 2022-07-12 stsp will use horizontal split by default.
679 2572d286 2022-07-12 stsp Otherwise, vertical split will be used.
680 2572d286 2022-07-12 stsp The
681 2572d286 2022-07-12 stsp .Cm S
682 2572d286 2022-07-12 stsp key can be used to switch between vertical and horizontal split layout
683 2572d286 2022-07-12 stsp at run-time.
684 6d17833f 2019-11-08 stsp .It Ev TOG_COLORS
685 6d17833f 2019-11-08 stsp .Nm
686 6d17833f 2019-11-08 stsp shows colorized output if this variable is set to a non-empty value.
687 6d17833f 2019-11-08 stsp The default color scheme can be modified by setting the environment
688 6d17833f 2019-11-08 stsp variables documented below.
689 6d17833f 2019-11-08 stsp The colors available in color schemes are
690 6d17833f 2019-11-08 stsp .Dq black ,
691 6d17833f 2019-11-08 stsp .Dq red ,
692 6d17833f 2019-11-08 stsp .Dq green ,
693 6d17833f 2019-11-08 stsp .Dq yellow ,
694 6d17833f 2019-11-08 stsp .Dq blue ,
695 93a300b2 2021-08-26 stsp .Dq magenta ,
696 1d7fe5cd 2019-11-08 stsp .Dq cyan ,
697 6d17833f 2019-11-08 stsp and
698 1d7fe5cd 2019-11-08 stsp .Dq default
699 1d7fe5cd 2019-11-08 stsp which maps to the terminal's default foreground color.
700 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_MINUS
701 6d17833f 2019-11-08 stsp The color used to mark up removed lines in diffs.
702 6d17833f 2019-11-08 stsp If not set, the default value
703 6d17833f 2019-11-08 stsp .Dq magenta
704 6d17833f 2019-11-08 stsp is used.
705 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_PLUS
706 6d17833f 2019-11-08 stsp The color used to mark up added lines in diffs.
707 6d17833f 2019-11-08 stsp If not set, the default value
708 6d17833f 2019-11-08 stsp .Dq cyan
709 6d17833f 2019-11-08 stsp is used.
710 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
711 6d17833f 2019-11-08 stsp The color used to mark up chunk header lines in diffs.
712 6d17833f 2019-11-08 stsp If not set, the default value
713 6d17833f 2019-11-08 stsp .Dq yellow
714 6d17833f 2019-11-08 stsp is used.
715 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_META
716 6d17833f 2019-11-08 stsp The color used to mark up meta data in diffs.
717 c0b01bdb 2019-11-08 stsp If not set, the default value
718 c0b01bdb 2019-11-08 stsp .Dq green
719 c0b01bdb 2019-11-08 stsp is used.
720 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SUBMODULE
721 93a300b2 2021-08-26 stsp The color used to mark up submodule tree entries.
722 c0b01bdb 2019-11-08 stsp If not set, the default value
723 c0b01bdb 2019-11-08 stsp .Dq magenta
724 c0b01bdb 2019-11-08 stsp is used.
725 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SYMLINK
726 c0b01bdb 2019-11-08 stsp The color used to mark up symbolic link tree entries.
727 c0b01bdb 2019-11-08 stsp If not set, the default value
728 91b8c405 2020-01-25 stsp .Dq magenta
729 c0b01bdb 2019-11-08 stsp is used.
730 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_DIRECTORY
731 c0b01bdb 2019-11-08 stsp The color used to mark up directory tree entries.
732 6d17833f 2019-11-08 stsp If not set, the default value
733 91b8c405 2020-01-25 stsp .Dq cyan
734 c0b01bdb 2019-11-08 stsp is used.
735 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_EXECUTABLE
736 c0b01bdb 2019-11-08 stsp The color used to mark up executable file tree entries.
737 c0b01bdb 2019-11-08 stsp If not set, the default value
738 6d17833f 2019-11-08 stsp .Dq green
739 6d17833f 2019-11-08 stsp is used.
740 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_COMMIT
741 11b20872 2019-11-08 stsp The color used to mark up commit IDs.
742 11b20872 2019-11-08 stsp If not set, the default value
743 11b20872 2019-11-08 stsp .Dq green
744 11b20872 2019-11-08 stsp is used.
745 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_AUTHOR
746 11b20872 2019-11-08 stsp The color used to mark up author information.
747 11b20872 2019-11-08 stsp If not set, the default value
748 11b20872 2019-11-08 stsp .Dq cyan
749 11b20872 2019-11-08 stsp is used.
750 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_DATE
751 11b20872 2019-11-08 stsp The color used to mark up date information.
752 11b20872 2019-11-08 stsp If not set, the default value
753 11b20872 2019-11-08 stsp .Dq yellow
754 11b20872 2019-11-08 stsp is used.
755 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_HEADS
756 38cb327b 2020-11-24 stsp The color used to mark up references in the
757 38cb327b 2020-11-24 stsp .Dq refs/heads/
758 38cb327b 2020-11-24 stsp namespace.
759 38cb327b 2020-11-24 stsp If not set, the default value
760 38cb327b 2020-11-24 stsp .Dq green
761 38cb327b 2020-11-24 stsp is used.
762 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_TAGS
763 38cb327b 2020-11-24 stsp The color used to mark up references in the
764 38cb327b 2020-11-24 stsp .Dq refs/tags/
765 38cb327b 2020-11-24 stsp namespace.
766 38cb327b 2020-11-24 stsp If not set, the default value
767 38cb327b 2020-11-24 stsp .Dq magenta
768 38cb327b 2020-11-24 stsp is used.
769 38cb327b 2020-11-24 stsp .It Ev TOG_COLOR_REFS_REMOTES
770 38cb327b 2020-11-24 stsp The color used to mark up references in the
771 38cb327b 2020-11-24 stsp .Dq refs/remotes/
772 38cb327b 2020-11-24 stsp namespace.
773 38cb327b 2020-11-24 stsp If not set, the default value
774 38cb327b 2020-11-24 stsp .Dq yellow
775 38cb327b 2020-11-24 stsp is used.
776 cc488aa7 2022-01-23 stsp .It Ev TOG_COLOR_REFS_BACKUP
777 cc488aa7 2022-01-23 stsp The color used to mark up references in the
778 cc488aa7 2022-01-23 stsp .Dq refs/got/backup/
779 cc488aa7 2022-01-23 stsp namespace.
780 cc488aa7 2022-01-23 stsp If not set, the default value
781 cc488aa7 2022-01-23 stsp .Dq cyan
782 cc488aa7 2022-01-23 stsp is used.
783 6d17833f 2019-11-08 stsp .El
784 030916b5 2018-07-12 stsp .Sh EXIT STATUS
785 030916b5 2018-07-12 stsp .Ex -std tog
786 030916b5 2018-07-12 stsp .Sh SEE ALSO
787 56b9a4ca 2019-06-21 stsp .Xr got 1 ,
788 56b9a4ca 2019-06-21 stsp .Xr git-repository 5 ,
789 56b9a4ca 2019-06-21 stsp .Xr re_format 7
790 030916b5 2018-07-12 stsp .Sh AUTHORS
791 8ca658b9 2022-07-05 stsp .An Christian Weisgerber Aq Mt naddy@openbsd.org
792 8ca658b9 2022-07-05 stsp .An Josh Rickmar Aq Mt jrick@zettaport.com
793 bc3056e3 2019-08-18 stsp .An Joshua Stein Aq Mt jcs@openbsd.org
794 8ca658b9 2022-07-05 stsp .An Mark Jamsek Aq Mt mark@jamsek.dev
795 8ca658b9 2022-07-05 stsp .An Martin Pieuchot Aq Mt mpi@openbsd.org
796 8ca658b9 2022-07-05 stsp .An Omar Polo Aq Mt op@openbsd.org
797 8ca658b9 2022-07-05 stsp .An Stefan Sperling Aq Mt stsp@openbsd.org
798 8ca658b9 2022-07-05 stsp .An Klemens Nanni Aq Mt kn@openbsd.org