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 ee85c5e8 2020-02-29 stsp .El
31 030916b5 2018-07-12 stsp .Sh DESCRIPTION
32 030916b5 2018-07-12 stsp .Nm
33 aee2a8bd 2019-08-05 stsp is an interactive read-only browser for Git repositories.
34 030916b5 2018-07-12 stsp This repository format is described in
35 5e5560e1 2018-08-01 stsp .Xr git-repository 5 .
36 030916b5 2018-07-12 stsp .Pp
37 030916b5 2018-07-12 stsp .Nm
38 0cf4efb1 2018-09-29 stsp supports several types of views which display repository data:
39 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
40 9419758a 2019-03-27 stsp .It Log view
41 87aa0e98 2018-08-18 stsp Displays commits in the repository's history.
42 87aa0e98 2018-08-18 stsp This view is displayed initially if no
43 87aa0e98 2018-08-18 stsp .Ar command
44 ee85c5e8 2020-02-29 stsp is specified, or if just a
45 ee85c5e8 2020-02-29 stsp .Ar path
46 87aa0e98 2018-08-18 stsp is specified.
47 9419758a 2019-03-27 stsp .It Diff view
48 87aa0e98 2018-08-18 stsp Displays changes made in a particular commit.
49 9419758a 2019-03-27 stsp .It Blame view
50 87aa0e98 2018-08-18 stsp Displays the line-by-line history of a file.
51 9419758a 2019-03-27 stsp .It Tree view
52 87aa0e98 2018-08-18 stsp Displays the tree corresponding to a particular commit.
53 87aa0e98 2018-08-18 stsp .El
54 87aa0e98 2018-08-18 stsp .Pp
55 87aa0e98 2018-08-18 stsp .Nm
56 87aa0e98 2018-08-18 stsp provides global and command-specific key bindings and options.
57 87aa0e98 2018-08-18 stsp The global key bindings are:
58 87aa0e98 2018-08-18 stsp .Bl -tag -width Ds
59 87aa0e98 2018-08-18 stsp .It Cm Q
60 87aa0e98 2018-08-18 stsp Quit
61 87aa0e98 2018-08-18 stsp .Nm .
62 87aa0e98 2018-08-18 stsp .It Cm q
63 87aa0e98 2018-08-18 stsp Quit the view which is in focus.
64 87aa0e98 2018-08-18 stsp .It Cm Tab
65 c0d30c23 2018-10-07 stsp Switch focus between views.
66 0cf4efb1 2018-09-29 stsp .It Cm f
67 c0d30c23 2018-10-07 stsp Toggle fullscreen mode for a split-screen view.
68 e9b3576f 2019-03-27 stsp .Nm
69 e9b3576f 2019-03-27 stsp will automatically use split-screen views if the size of the terminal
70 e9b3576f 2019-03-27 stsp window is sufficiently large.
71 87aa0e98 2018-08-18 stsp .El
72 87aa0e98 2018-08-18 stsp .Pp
73 87aa0e98 2018-08-18 stsp Global options must precede the command name, and are as follows:
74 030916b5 2018-07-12 stsp .Bl -tag -width tenletters
75 030916b5 2018-07-12 stsp .It Fl h
76 030916b5 2018-07-12 stsp Display usage information.
77 83cd27f8 2020-01-13 stsp .It Fl V, -version
78 53ccebc2 2019-07-30 stsp Display program version and exit immediately.
79 030916b5 2018-07-12 stsp .El
80 030916b5 2018-07-12 stsp .Pp
81 030916b5 2018-07-12 stsp The commands for
82 030916b5 2018-07-12 stsp .Nm
83 030916b5 2018-07-12 stsp are as follows:
84 030916b5 2018-07-12 stsp .Bl -tag -width blame
85 b672a97a 2020-01-27 stsp .It Cm log Oo Fl b Oc Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
86 030916b5 2018-07-12 stsp Display history of a repository.
87 ecb28ae0 2018-07-16 stsp If a
88 ecb28ae0 2018-07-16 stsp .Ar path
89 ecb28ae0 2018-07-16 stsp is specified, show only commits which modified this path.
90 dc990cbf 2020-02-22 stsp If invoked in a work tree, the
91 dc990cbf 2020-02-22 stsp .Ar path
92 dc990cbf 2020-02-22 stsp is interpreted relative to the current working directory,
93 dc990cbf 2020-02-22 stsp and the work tree's path prefix is implicitly prepended.
94 dc990cbf 2020-02-22 stsp Otherwise, the path is interpreted relative to the repository root.
95 030916b5 2018-07-12 stsp .Pp
96 030916b5 2018-07-12 stsp This command is also executed if no explicit command is specified.
97 030916b5 2018-07-12 stsp .Pp
98 030916b5 2018-07-12 stsp The key bindings for
99 030916b5 2018-07-12 stsp .Cm tog log
100 030916b5 2018-07-12 stsp are as follows:
101 030916b5 2018-07-12 stsp .Bl -tag -width Ds
102 eb029fd6 2019-05-13 stsp .It Cm Down-arrow, j, >, Full stop
103 030916b5 2018-07-12 stsp Move the selection cursor down.
104 eb029fd6 2019-05-13 stsp .It Cm Up-arrow, k, <, Comma
105 030916b5 2018-07-12 stsp Move the selection cursor up.
106 9be75582 2019-06-26 stsp .It Cm Page-down, Ctrl+f
107 a60a9dc4 2019-05-13 jcs Move the selection cursor down one page.
108 9be75582 2019-06-26 stsp .It Cm Page-up, Ctrl+b
109 a60a9dc4 2019-05-13 jcs Move the selection cursor up one page.
110 e350feed 2019-05-12 stsp .It Cm Enter, Space
111 c0d30c23 2018-10-07 stsp Open a
112 030916b5 2018-07-12 stsp .Cm diff
113 030916b5 2018-07-12 stsp view showing file changes made in the currently selected commit.
114 030916b5 2018-07-12 stsp .It Cm t
115 a60a9dc4 2019-05-13 jcs Open a
116 030916b5 2018-07-12 stsp .Cm tree
117 030916b5 2018-07-12 stsp view showing the tree for the currently selected commit.
118 5036bf37 2018-09-24 stsp .It Cm Backspace
119 678cbce5 2019-07-28 stsp Show log entries for the parent directory of the currently selected path,
120 678cbce5 2019-07-28 stsp unless an active search is in progress in which case
121 678cbce5 2019-07-28 stsp .Cm Backspace
122 678cbce5 2019-07-28 stsp aborts the search.
123 60493ae3 2019-06-20 stsp .It Cm /
124 60493ae3 2019-06-20 stsp Prompt for a search pattern and start searching for matching commits.
125 60493ae3 2019-06-20 stsp The search pattern is an extended regular expression which is matched
126 df0b3d8a 2019-06-28 stsp against a commit's author name, committer name, log message, and
127 df0b3d8a 2019-06-28 stsp commit ID SHA1 hash.
128 e6c76b79 2019-06-21 stsp Regular expression syntax is documented in
129 e6c76b79 2019-06-21 stsp .Xr re_format 7 .
130 60493ae3 2019-06-20 stsp .It Cm n
131 60493ae3 2019-06-20 stsp Find the next commit which matches the current search pattern.
132 678cbce5 2019-07-28 stsp Searching continues until either a match is found or the
133 678cbce5 2019-07-28 stsp .Cm Backspace
134 678cbce5 2019-07-28 stsp key is pressed.
135 b1bf1435 2019-06-21 stsp .It Cm N
136 b1bf1435 2019-06-21 stsp Find the previous commit which matches the current search pattern.
137 678cbce5 2019-07-28 stsp Searching continues until either a match is found or the
138 678cbce5 2019-07-28 stsp .Cm Backspace
139 678cbce5 2019-07-28 stsp key is pressed.
140 bf0668dd 2019-06-26 stsp .It Cm Ctrl+l
141 d01904d4 2019-06-25 stsp Reload the log view with new commits found in the repository.
142 b672a97a 2020-01-27 stsp .It Cm B
143 b672a97a 2020-01-27 stsp Reload the log view and toggle display of merged commits.
144 b672a97a 2020-01-27 stsp The
145 b672a97a 2020-01-27 stsp .Fl b
146 b672a97a 2020-01-27 stsp option determines whether merged commits are displayed initially.
147 030916b5 2018-07-12 stsp .El
148 030916b5 2018-07-12 stsp .Pp
149 030916b5 2018-07-12 stsp The options for
150 030916b5 2018-07-12 stsp .Cm tog log
151 030916b5 2018-07-12 stsp are as follows:
152 030916b5 2018-07-12 stsp .Bl -tag -width Ds
153 b672a97a 2020-01-27 stsp .It Fl b
154 1137e0ae 2020-01-27 stsp Display individual commits which were merged into the current branch
155 1137e0ae 2020-01-27 stsp from other branches.
156 b672a97a 2020-01-27 stsp By default,
157 b672a97a 2020-01-27 stsp .Cm tog log
158 b672a97a 2020-01-27 stsp shows the linear history of the current branch only.
159 b672a97a 2020-01-27 stsp The
160 b672a97a 2020-01-27 stsp .Cm B
161 b672a97a 2020-01-27 stsp key binding can be used to toggle display of merged commits at run-time.
162 030916b5 2018-07-12 stsp .It Fl c Ar commit
163 030916b5 2018-07-12 stsp Start traversing history at the specified
164 030916b5 2018-07-12 stsp .Ar commit .
165 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
166 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
167 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
168 19e70ad6 2019-05-14 stsp If this option is not specified, default to the work tree's current branch
169 19e70ad6 2019-05-14 stsp if invoked in a work tree, or to the repository's HEAD reference.
170 ecb28ae0 2018-07-16 stsp .It Fl r Ar repository-path
171 ecb28ae0 2018-07-16 stsp Use the repository at the specified path.
172 ecb28ae0 2018-07-16 stsp If not specified, assume the repository is located at or above the current
173 ecb28ae0 2018-07-16 stsp working directory.
174 212b39d1 2020-02-24 naddy If this directory is a
175 212b39d1 2020-02-24 naddy .Xr got 1
176 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
177 030916b5 2018-07-12 stsp .El
178 09b5bff8 2020-02-23 naddy .It Cm diff Oo Fl r Ar repository-path Oc Ar object1 object2
179 030916b5 2018-07-12 stsp Display the differences between two objects in the repository.
180 030916b5 2018-07-12 stsp Each
181 030916b5 2018-07-12 stsp .Ar object
182 a54b6686 2019-06-28 stsp argument is an object ID SHA1 hash.
183 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
184 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
185 030916b5 2018-07-12 stsp Both objects must be of the same type (blobs, trees, or commits).
186 030916b5 2018-07-12 stsp .Pp
187 030916b5 2018-07-12 stsp The key bindings for
188 030916b5 2018-07-12 stsp .Cm tog diff
189 030916b5 2018-07-12 stsp are as follows:
190 030916b5 2018-07-12 stsp .Bl -tag -width Ds
191 a60a9dc4 2019-05-13 jcs .It Cm Down-arrow, j
192 030916b5 2018-07-12 stsp Scroll down.
193 eb029fd6 2019-05-13 stsp .It Cm Up-arrow, k
194 030916b5 2018-07-12 stsp Scroll up.
195 a60a9dc4 2019-05-13 jcs .It Cm Page-down, Space, Ctrl+f
196 a60a9dc4 2019-05-13 jcs Scroll down one page.
197 a60a9dc4 2019-05-13 jcs .It Cm Page-up, Ctrl+b
198 a60a9dc4 2019-05-13 jcs Scroll up one page.
199 dfc23429 2019-08-11 stsp .It Cm \&[
200 48ae06ee 2018-10-18 stsp Reduce the amount of diff context lines.
201 dfc23429 2019-08-11 stsp .It Cm \&]
202 48ae06ee 2018-10-18 stsp Increase the amount of diff context lines.
203 15a087fe 2019-02-21 stsp .It Cm <, Comma
204 15a087fe 2019-02-21 stsp If the diff view was opened via the log view, move to the previous (younger)
205 15a087fe 2019-02-21 stsp commit.
206 15a087fe 2019-02-21 stsp .It Cm >, Full stop
207 15a087fe 2019-02-21 stsp If the diff view was opened via the log view, move to the next (older) commit.
208 66dc9065 2020-02-15 stsp .It Cm /
209 66dc9065 2020-02-15 stsp Prompt for a search pattern and start searching for matching line.
210 66dc9065 2020-02-15 stsp The search pattern is an extended regular expression.
211 66dc9065 2020-02-15 stsp Regular expression syntax is documented in
212 66dc9065 2020-02-15 stsp .Xr re_format 7 .
213 66dc9065 2020-02-15 stsp .It Cm n
214 66dc9065 2020-02-15 stsp Find the next line which matches the current search pattern.
215 66dc9065 2020-02-15 stsp .It Cm N
216 66dc9065 2020-02-15 stsp Find the previous line which matches the current search pattern.
217 030916b5 2018-07-12 stsp .El
218 09b5bff8 2020-02-23 naddy .Pp
219 09b5bff8 2020-02-23 naddy The options for
220 09b5bff8 2020-02-23 naddy .Cm tog diff
221 09b5bff8 2020-02-23 naddy are as follows:
222 09b5bff8 2020-02-23 naddy .Bl -tag -width Ds
223 09b5bff8 2020-02-23 naddy .It Fl r Ar repository-path
224 09b5bff8 2020-02-23 naddy Use the repository at the specified path.
225 09b5bff8 2020-02-23 naddy If not specified, assume the repository is located at or above the current
226 09b5bff8 2020-02-23 naddy working directory.
227 212b39d1 2020-02-24 naddy If this directory is a
228 212b39d1 2020-02-24 naddy .Xr got 1
229 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
230 09b5bff8 2020-02-23 naddy .El
231 dfc23429 2019-08-11 stsp .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
232 030916b5 2018-07-12 stsp Display line-by-line history of a file at the specified path.
233 030916b5 2018-07-12 stsp .Pp
234 030916b5 2018-07-12 stsp The key bindings for
235 030916b5 2018-07-12 stsp .Cm tog blame
236 030916b5 2018-07-12 stsp are as follows:
237 030916b5 2018-07-12 stsp .Bl -tag -width Ds
238 ea025d1d 2020-02-22 naddy .It Cm Down-arrow, j
239 030916b5 2018-07-12 stsp Move the selection cursor down.
240 ea025d1d 2020-02-22 naddy .It Cm Up-arrow, k
241 030916b5 2018-07-12 stsp Move the selection cursor up.
242 ea025d1d 2020-02-22 naddy .It Cm Page-down, Space, Ctrl+f
243 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
244 ea025d1d 2020-02-22 naddy .It Cm Page-up, Ctrl+b
245 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
246 030916b5 2018-07-12 stsp .It Cm Enter
247 c0d30c23 2018-10-07 stsp Open a
248 030916b5 2018-07-12 stsp .Cm diff
249 030916b5 2018-07-12 stsp view for the currently selected line's commit.
250 030916b5 2018-07-12 stsp .It Cm b
251 c0d30c23 2018-10-07 stsp Reload the
252 030916b5 2018-07-12 stsp .Cm blame
253 c0d30c23 2018-10-07 stsp view with the version of the file as found in the currently
254 c0d30c23 2018-10-07 stsp selected line's commit.
255 7a2921f9 2018-07-12 stsp .It Cm p
256 c0d30c23 2018-10-07 stsp Reload the
257 7a2921f9 2018-07-12 stsp .Cm blame
258 c0d30c23 2018-10-07 stsp view with the version of the file as found in the parent commit of the
259 c0d30c23 2018-10-07 stsp currently selected line's commit.
260 030916b5 2018-07-12 stsp .It Cm B
261 c0d30c23 2018-10-07 stsp Reload the
262 030916b5 2018-07-12 stsp .Cm blame
263 c0d30c23 2018-10-07 stsp view with the previously blamed commit.
264 6c4c42e0 2019-06-24 stsp .It Cm /
265 6c4c42e0 2019-06-24 stsp Prompt for a search pattern and start searching for matching line.
266 6c4c42e0 2019-06-24 stsp The search pattern is an extended regular expression.
267 6c4c42e0 2019-06-24 stsp Regular expression syntax is documented in
268 6c4c42e0 2019-06-24 stsp .Xr re_format 7 .
269 6c4c42e0 2019-06-24 stsp .It Cm n
270 6c4c42e0 2019-06-24 stsp Find the next line which matches the current search pattern.
271 6c4c42e0 2019-06-24 stsp .It Cm N
272 6c4c42e0 2019-06-24 stsp Find the previous line which matches the current search pattern.
273 030916b5 2018-07-12 stsp .El
274 030916b5 2018-07-12 stsp .Pp
275 030916b5 2018-07-12 stsp The options for
276 030916b5 2018-07-12 stsp .Cm tog blame
277 030916b5 2018-07-12 stsp are as follows:
278 030916b5 2018-07-12 stsp .Bl -tag -width Ds
279 030916b5 2018-07-12 stsp .It Fl c Ar commit
280 030916b5 2018-07-12 stsp Start traversing history at the specified
281 030916b5 2018-07-12 stsp .Ar commit .
282 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
283 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
284 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
285 69069811 2018-08-02 stsp .It Fl r Ar repository-path
286 69069811 2018-08-02 stsp Use the repository at the specified path.
287 69069811 2018-08-02 stsp If not specified, assume the repository is located at or above the current
288 69069811 2018-08-02 stsp working directory.
289 212b39d1 2020-02-24 naddy If this directory is a
290 212b39d1 2020-02-24 naddy .Xr got 1
291 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
292 030916b5 2018-07-12 stsp .El
293 55cccc34 2020-02-20 stsp .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
294 030916b5 2018-07-12 stsp Display the repository tree.
295 55cccc34 2020-02-20 stsp If a
296 55cccc34 2020-02-20 stsp .Ar path
297 55cccc34 2020-02-20 stsp is specified, show tree entries at this path.
298 030916b5 2018-07-12 stsp .Pp
299 848d6979 2019-08-12 stsp Displayed tree entries may carry one of the following trailing annotations:
300 848d6979 2019-08-12 stsp .Bl -column YXZ description
301 848d6979 2019-08-12 stsp .It @ Ta entry is a symbolic link
302 848d6979 2019-08-12 stsp .It / Ta entry is a directory
303 848d6979 2019-08-12 stsp .It * Ta entry is an executable file
304 63c5ca5d 2019-08-24 stsp .It $ Ta entry is a Git submodule
305 848d6979 2019-08-12 stsp .El
306 0d6c6ee3 2020-05-20 stsp .Pp
307 0d6c6ee3 2020-05-20 stsp Symbolic link entries are also annotated with the target path of the link.
308 848d6979 2019-08-12 stsp .Pp
309 030916b5 2018-07-12 stsp The key bindings for
310 030916b5 2018-07-12 stsp .Cm tog tree
311 030916b5 2018-07-12 stsp are as follows:
312 030916b5 2018-07-12 stsp .Bl -tag -width Ds
313 ea025d1d 2020-02-22 naddy .It Cm Down-arrow, j
314 030916b5 2018-07-12 stsp Move the selection cursor down.
315 ea025d1d 2020-02-22 naddy .It Cm Up-arrow, k
316 030916b5 2018-07-12 stsp Move the selection cursor up.
317 ea025d1d 2020-02-22 naddy .It Cm Page-down, Ctrl+f
318 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
319 ea025d1d 2020-02-22 naddy .It Cm Page-up, Ctrl+b
320 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
321 030916b5 2018-07-12 stsp .It Cm Enter
322 030916b5 2018-07-12 stsp Enter the currently selected directory, or switch to the
323 030916b5 2018-07-12 stsp .Cm blame
324 030916b5 2018-07-12 stsp view for the currently selected file.
325 69efd4c4 2018-07-18 stsp .It Cm l
326 c0d30c23 2018-10-07 stsp Open a
327 69efd4c4 2018-07-18 stsp .Cm log
328 69efd4c4 2018-07-18 stsp view for the currently selected tree entry.
329 7837eeac 2018-09-24 stsp .It Cm Backspace
330 030916b5 2018-07-12 stsp Move back to the parent directory.
331 030916b5 2018-07-12 stsp .It Cm i
332 c0d30c23 2018-10-07 stsp Show object IDs for all objects displayed in the
333 030916b5 2018-07-12 stsp .Cm tree
334 030916b5 2018-07-12 stsp view.
335 4eec20aa 2019-06-22 stsp .It Cm /
336 4eec20aa 2019-06-22 stsp Prompt for a search pattern and start searching for matching tree entries.
337 4eec20aa 2019-06-22 stsp The search pattern is an extended regular expression which is matched
338 4eec20aa 2019-06-22 stsp against the tree entry's name.
339 4eec20aa 2019-06-22 stsp Regular expression syntax is documented in
340 4eec20aa 2019-06-22 stsp .Xr re_format 7 .
341 4eec20aa 2019-06-22 stsp .It Cm n
342 4eec20aa 2019-06-22 stsp Find the next tree entry which matches the current search pattern.
343 4eec20aa 2019-06-22 stsp .It Cm N
344 4eec20aa 2019-06-22 stsp Find the previous tree entry which matches the current search pattern.
345 030916b5 2018-07-12 stsp .El
346 030916b5 2018-07-12 stsp .Pp
347 030916b5 2018-07-12 stsp The options for
348 030916b5 2018-07-12 stsp .Cm tog tree
349 030916b5 2018-07-12 stsp are as follows:
350 030916b5 2018-07-12 stsp .Bl -tag -width Ds
351 030916b5 2018-07-12 stsp .It Fl c Ar commit
352 030916b5 2018-07-12 stsp Start traversing history at the specified
353 030916b5 2018-07-12 stsp .Ar commit .
354 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
355 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
356 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
357 74283ab8 2020-02-07 stsp .It Fl r Ar repository-path
358 74283ab8 2020-02-07 stsp Use the repository at the specified path.
359 74283ab8 2020-02-07 stsp If not specified, assume the repository is located at or above the current
360 74283ab8 2020-02-07 stsp working directory.
361 74283ab8 2020-02-07 stsp If this directory is a
362 74283ab8 2020-02-07 stsp .Xr got 1
363 74283ab8 2020-02-07 stsp work tree, use the repository path associated with this work tree.
364 030916b5 2018-07-12 stsp .El
365 030916b5 2018-07-12 stsp .El
366 6d17833f 2019-11-08 stsp .Sh ENVIRONMENT
367 6d17833f 2019-11-08 stsp .Bl -tag -width TOG_COLORS
368 6d17833f 2019-11-08 stsp .It Ev TOG_COLORS
369 6d17833f 2019-11-08 stsp .Nm
370 6d17833f 2019-11-08 stsp shows colorized output if this variable is set to a non-empty value.
371 6d17833f 2019-11-08 stsp The default color scheme can be modified by setting the environment
372 6d17833f 2019-11-08 stsp variables documented below.
373 6d17833f 2019-11-08 stsp The colors available in color schemes are
374 6d17833f 2019-11-08 stsp .Dq black ,
375 6d17833f 2019-11-08 stsp .Dq red ,
376 6d17833f 2019-11-08 stsp .Dq green ,
377 6d17833f 2019-11-08 stsp .Dq yellow ,
378 6d17833f 2019-11-08 stsp .Dq blue ,
379 6d17833f 2019-11-08 stsp .Dq megenta ,
380 1d7fe5cd 2019-11-08 stsp .Dq cyan ,
381 6d17833f 2019-11-08 stsp and
382 1d7fe5cd 2019-11-08 stsp .Dq default
383 1d7fe5cd 2019-11-08 stsp which maps to the terminal's default foreground color.
384 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_MINUS
385 6d17833f 2019-11-08 stsp The color used to mark up removed lines in diffs.
386 6d17833f 2019-11-08 stsp If not set, the default value
387 6d17833f 2019-11-08 stsp .Dq magenta
388 6d17833f 2019-11-08 stsp is used.
389 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_PLUS
390 6d17833f 2019-11-08 stsp The color used to mark up added lines in diffs.
391 6d17833f 2019-11-08 stsp If not set, the default value
392 6d17833f 2019-11-08 stsp .Dq cyan
393 6d17833f 2019-11-08 stsp is used.
394 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
395 6d17833f 2019-11-08 stsp The color used to mark up chunk header lines in diffs.
396 6d17833f 2019-11-08 stsp If not set, the default value
397 6d17833f 2019-11-08 stsp .Dq yellow
398 6d17833f 2019-11-08 stsp is used.
399 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_META
400 6d17833f 2019-11-08 stsp The color used to mark up meta data in diffs.
401 c0b01bdb 2019-11-08 stsp If not set, the default value
402 c0b01bdb 2019-11-08 stsp .Dq green
403 c0b01bdb 2019-11-08 stsp is used.
404 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SUBMODULE
405 c0b01bdb 2019-11-08 stsp The color used to mark up sobmodules tree entries.
406 c0b01bdb 2019-11-08 stsp If not set, the default value
407 c0b01bdb 2019-11-08 stsp .Dq magenta
408 c0b01bdb 2019-11-08 stsp is used.
409 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SYMLINK
410 c0b01bdb 2019-11-08 stsp The color used to mark up symbolic link tree entries.
411 c0b01bdb 2019-11-08 stsp If not set, the default value
412 91b8c405 2020-01-25 stsp .Dq magenta
413 c0b01bdb 2019-11-08 stsp is used.
414 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_DIRECTORY
415 c0b01bdb 2019-11-08 stsp The color used to mark up directory tree entries.
416 6d17833f 2019-11-08 stsp If not set, the default value
417 91b8c405 2020-01-25 stsp .Dq cyan
418 c0b01bdb 2019-11-08 stsp is used.
419 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_EXECUTABLE
420 c0b01bdb 2019-11-08 stsp The color used to mark up executable file tree entries.
421 c0b01bdb 2019-11-08 stsp If not set, the default value
422 6d17833f 2019-11-08 stsp .Dq green
423 6d17833f 2019-11-08 stsp is used.
424 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_COMMIT
425 11b20872 2019-11-08 stsp The color used to mark up commit IDs.
426 11b20872 2019-11-08 stsp If not set, the default value
427 11b20872 2019-11-08 stsp .Dq green
428 11b20872 2019-11-08 stsp is used.
429 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_AUTHOR
430 11b20872 2019-11-08 stsp The color used to mark up author information.
431 11b20872 2019-11-08 stsp If not set, the default value
432 11b20872 2019-11-08 stsp .Dq cyan
433 11b20872 2019-11-08 stsp is used.
434 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_DATE
435 11b20872 2019-11-08 stsp The color used to mark up date information.
436 11b20872 2019-11-08 stsp If not set, the default value
437 11b20872 2019-11-08 stsp .Dq yellow
438 11b20872 2019-11-08 stsp is used.
439 6d17833f 2019-11-08 stsp .El
440 030916b5 2018-07-12 stsp .Sh EXIT STATUS
441 030916b5 2018-07-12 stsp .Ex -std tog
442 030916b5 2018-07-12 stsp .Sh SEE ALSO
443 56b9a4ca 2019-06-21 stsp .Xr got 1 ,
444 56b9a4ca 2019-06-21 stsp .Xr git-repository 5 ,
445 56b9a4ca 2019-06-21 stsp .Xr re_format 7
446 030916b5 2018-07-12 stsp .Sh AUTHORS
447 030916b5 2018-07-12 stsp .An Stefan Sperling Aq Mt stsp@openbsd.org
448 bc3056e3 2019-08-18 stsp .An Joshua Stein Aq Mt jcs@openbsd.org