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 64453f7e 2020-11-21 stsp .It Cm diff Oo Fl a Oc 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 64453f7e 2020-11-21 stsp .It Cm a
192 64453f7e 2020-11-21 stsp Toggle treatment of file contents as ASCII text even if binary data was
193 64453f7e 2020-11-21 stsp detected.
194 a60a9dc4 2019-05-13 jcs .It Cm Down-arrow, j
195 030916b5 2018-07-12 stsp Scroll down.
196 eb029fd6 2019-05-13 stsp .It Cm Up-arrow, k
197 030916b5 2018-07-12 stsp Scroll up.
198 a60a9dc4 2019-05-13 jcs .It Cm Page-down, Space, Ctrl+f
199 a60a9dc4 2019-05-13 jcs Scroll down one page.
200 a60a9dc4 2019-05-13 jcs .It Cm Page-up, Ctrl+b
201 a60a9dc4 2019-05-13 jcs Scroll up one page.
202 dfc23429 2019-08-11 stsp .It Cm \&[
203 48ae06ee 2018-10-18 stsp Reduce the amount of diff context lines.
204 dfc23429 2019-08-11 stsp .It Cm \&]
205 48ae06ee 2018-10-18 stsp Increase the amount of diff context lines.
206 15a087fe 2019-02-21 stsp .It Cm <, Comma
207 15a087fe 2019-02-21 stsp If the diff view was opened via the log view, move to the previous (younger)
208 15a087fe 2019-02-21 stsp commit.
209 15a087fe 2019-02-21 stsp .It Cm >, Full stop
210 15a087fe 2019-02-21 stsp If the diff view was opened via the log view, move to the next (older) commit.
211 66dc9065 2020-02-15 stsp .It Cm /
212 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
213 66dc9065 2020-02-15 stsp The search pattern is an extended regular expression.
214 66dc9065 2020-02-15 stsp Regular expression syntax is documented in
215 66dc9065 2020-02-15 stsp .Xr re_format 7 .
216 66dc9065 2020-02-15 stsp .It Cm n
217 66dc9065 2020-02-15 stsp Find the next line which matches the current search pattern.
218 66dc9065 2020-02-15 stsp .It Cm N
219 66dc9065 2020-02-15 stsp Find the previous line which matches the current search pattern.
220 030916b5 2018-07-12 stsp .El
221 09b5bff8 2020-02-23 naddy .Pp
222 09b5bff8 2020-02-23 naddy The options for
223 09b5bff8 2020-02-23 naddy .Cm tog diff
224 09b5bff8 2020-02-23 naddy are as follows:
225 09b5bff8 2020-02-23 naddy .Bl -tag -width Ds
226 64453f7e 2020-11-21 stsp .It Fl a
227 64453f7e 2020-11-21 stsp Treat file contents as ASCII text even if binary data is detected.
228 09b5bff8 2020-02-23 naddy .It Fl r Ar repository-path
229 09b5bff8 2020-02-23 naddy Use the repository at the specified path.
230 09b5bff8 2020-02-23 naddy If not specified, assume the repository is located at or above the current
231 09b5bff8 2020-02-23 naddy working directory.
232 212b39d1 2020-02-24 naddy If this directory is a
233 212b39d1 2020-02-24 naddy .Xr got 1
234 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
235 09b5bff8 2020-02-23 naddy .El
236 dfc23429 2019-08-11 stsp .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
237 030916b5 2018-07-12 stsp Display line-by-line history of a file at the specified path.
238 030916b5 2018-07-12 stsp .Pp
239 030916b5 2018-07-12 stsp The key bindings for
240 030916b5 2018-07-12 stsp .Cm tog blame
241 030916b5 2018-07-12 stsp are as follows:
242 030916b5 2018-07-12 stsp .Bl -tag -width Ds
243 ea025d1d 2020-02-22 naddy .It Cm Down-arrow, j
244 030916b5 2018-07-12 stsp Move the selection cursor down.
245 ea025d1d 2020-02-22 naddy .It Cm Up-arrow, k
246 030916b5 2018-07-12 stsp Move the selection cursor up.
247 ea025d1d 2020-02-22 naddy .It Cm Page-down, Space, Ctrl+f
248 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
249 ea025d1d 2020-02-22 naddy .It Cm Page-up, Ctrl+b
250 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
251 030916b5 2018-07-12 stsp .It Cm Enter
252 c0d30c23 2018-10-07 stsp Open a
253 030916b5 2018-07-12 stsp .Cm diff
254 030916b5 2018-07-12 stsp view for the currently selected line's commit.
255 030916b5 2018-07-12 stsp .It Cm b
256 c0d30c23 2018-10-07 stsp Reload the
257 030916b5 2018-07-12 stsp .Cm blame
258 c0d30c23 2018-10-07 stsp view with the version of the file as found in the currently
259 c0d30c23 2018-10-07 stsp selected line's commit.
260 7a2921f9 2018-07-12 stsp .It Cm p
261 c0d30c23 2018-10-07 stsp Reload the
262 7a2921f9 2018-07-12 stsp .Cm blame
263 c0d30c23 2018-10-07 stsp view with the version of the file as found in the parent commit of the
264 c0d30c23 2018-10-07 stsp currently selected line's commit.
265 030916b5 2018-07-12 stsp .It Cm B
266 c0d30c23 2018-10-07 stsp Reload the
267 030916b5 2018-07-12 stsp .Cm blame
268 c0d30c23 2018-10-07 stsp view with the previously blamed commit.
269 6c4c42e0 2019-06-24 stsp .It Cm /
270 0e404f95 2020-11-14 stsp Prompt for a search pattern and start searching for matching lines.
271 6c4c42e0 2019-06-24 stsp The search pattern is an extended regular expression.
272 6c4c42e0 2019-06-24 stsp Regular expression syntax is documented in
273 6c4c42e0 2019-06-24 stsp .Xr re_format 7 .
274 6c4c42e0 2019-06-24 stsp .It Cm n
275 6c4c42e0 2019-06-24 stsp Find the next line which matches the current search pattern.
276 6c4c42e0 2019-06-24 stsp .It Cm N
277 6c4c42e0 2019-06-24 stsp Find the previous line which matches the current search pattern.
278 030916b5 2018-07-12 stsp .El
279 030916b5 2018-07-12 stsp .Pp
280 030916b5 2018-07-12 stsp The options for
281 030916b5 2018-07-12 stsp .Cm tog blame
282 030916b5 2018-07-12 stsp are as follows:
283 030916b5 2018-07-12 stsp .Bl -tag -width Ds
284 030916b5 2018-07-12 stsp .It Fl c Ar commit
285 030916b5 2018-07-12 stsp Start traversing history at the specified
286 030916b5 2018-07-12 stsp .Ar commit .
287 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
288 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
289 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
290 69069811 2018-08-02 stsp .It Fl r Ar repository-path
291 69069811 2018-08-02 stsp Use the repository at the specified path.
292 69069811 2018-08-02 stsp If not specified, assume the repository is located at or above the current
293 69069811 2018-08-02 stsp working directory.
294 212b39d1 2020-02-24 naddy If this directory is a
295 212b39d1 2020-02-24 naddy .Xr got 1
296 212b39d1 2020-02-24 naddy work tree, use the repository path associated with this work tree.
297 030916b5 2018-07-12 stsp .El
298 55cccc34 2020-02-20 stsp .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Op Ar path
299 030916b5 2018-07-12 stsp Display the repository tree.
300 55cccc34 2020-02-20 stsp If a
301 55cccc34 2020-02-20 stsp .Ar path
302 55cccc34 2020-02-20 stsp is specified, show tree entries at this path.
303 030916b5 2018-07-12 stsp .Pp
304 848d6979 2019-08-12 stsp Displayed tree entries may carry one of the following trailing annotations:
305 848d6979 2019-08-12 stsp .Bl -column YXZ description
306 848d6979 2019-08-12 stsp .It @ Ta entry is a symbolic link
307 848d6979 2019-08-12 stsp .It / Ta entry is a directory
308 848d6979 2019-08-12 stsp .It * Ta entry is an executable file
309 63c5ca5d 2019-08-24 stsp .It $ Ta entry is a Git submodule
310 848d6979 2019-08-12 stsp .El
311 0d6c6ee3 2020-05-20 stsp .Pp
312 0d6c6ee3 2020-05-20 stsp Symbolic link entries are also annotated with the target path of the link.
313 848d6979 2019-08-12 stsp .Pp
314 030916b5 2018-07-12 stsp The key bindings for
315 030916b5 2018-07-12 stsp .Cm tog tree
316 030916b5 2018-07-12 stsp are as follows:
317 030916b5 2018-07-12 stsp .Bl -tag -width Ds
318 ea025d1d 2020-02-22 naddy .It Cm Down-arrow, j
319 030916b5 2018-07-12 stsp Move the selection cursor down.
320 ea025d1d 2020-02-22 naddy .It Cm Up-arrow, k
321 030916b5 2018-07-12 stsp Move the selection cursor up.
322 ea025d1d 2020-02-22 naddy .It Cm Page-down, Ctrl+f
323 ea025d1d 2020-02-22 naddy Move the selection cursor down one page.
324 ea025d1d 2020-02-22 naddy .It Cm Page-up, Ctrl+b
325 ea025d1d 2020-02-22 naddy Move the selection cursor up one page.
326 030916b5 2018-07-12 stsp .It Cm Enter
327 030916b5 2018-07-12 stsp Enter the currently selected directory, or switch to the
328 030916b5 2018-07-12 stsp .Cm blame
329 030916b5 2018-07-12 stsp view for the currently selected file.
330 69efd4c4 2018-07-18 stsp .It Cm l
331 c0d30c23 2018-10-07 stsp Open a
332 69efd4c4 2018-07-18 stsp .Cm log
333 69efd4c4 2018-07-18 stsp view for the currently selected tree entry.
334 7837eeac 2018-09-24 stsp .It Cm Backspace
335 030916b5 2018-07-12 stsp Move back to the parent directory.
336 030916b5 2018-07-12 stsp .It Cm i
337 c0d30c23 2018-10-07 stsp Show object IDs for all objects displayed in the
338 030916b5 2018-07-12 stsp .Cm tree
339 030916b5 2018-07-12 stsp view.
340 4eec20aa 2019-06-22 stsp .It Cm /
341 4eec20aa 2019-06-22 stsp Prompt for a search pattern and start searching for matching tree entries.
342 4eec20aa 2019-06-22 stsp The search pattern is an extended regular expression which is matched
343 4eec20aa 2019-06-22 stsp against the tree entry's name.
344 4eec20aa 2019-06-22 stsp Regular expression syntax is documented in
345 4eec20aa 2019-06-22 stsp .Xr re_format 7 .
346 4eec20aa 2019-06-22 stsp .It Cm n
347 4eec20aa 2019-06-22 stsp Find the next tree entry which matches the current search pattern.
348 4eec20aa 2019-06-22 stsp .It Cm N
349 4eec20aa 2019-06-22 stsp Find the previous tree entry which matches the current search pattern.
350 030916b5 2018-07-12 stsp .El
351 030916b5 2018-07-12 stsp .Pp
352 030916b5 2018-07-12 stsp The options for
353 030916b5 2018-07-12 stsp .Cm tog tree
354 030916b5 2018-07-12 stsp are as follows:
355 030916b5 2018-07-12 stsp .Bl -tag -width Ds
356 030916b5 2018-07-12 stsp .It Fl c Ar commit
357 030916b5 2018-07-12 stsp Start traversing history at the specified
358 030916b5 2018-07-12 stsp .Ar commit .
359 a54b6686 2019-06-28 stsp The expected argument is the name of a branch or a commit ID SHA1 hash.
360 0db75f06 2019-07-07 stsp An abbreviated hash argument will be expanded to a full SHA1 hash
361 0db75f06 2019-07-07 stsp automatically, provided the abbreviation is unique.
362 74283ab8 2020-02-07 stsp .It Fl r Ar repository-path
363 74283ab8 2020-02-07 stsp Use the repository at the specified path.
364 74283ab8 2020-02-07 stsp If not specified, assume the repository is located at or above the current
365 74283ab8 2020-02-07 stsp working directory.
366 74283ab8 2020-02-07 stsp If this directory is a
367 74283ab8 2020-02-07 stsp .Xr got 1
368 74283ab8 2020-02-07 stsp work tree, use the repository path associated with this work tree.
369 030916b5 2018-07-12 stsp .El
370 030916b5 2018-07-12 stsp .El
371 6d17833f 2019-11-08 stsp .Sh ENVIRONMENT
372 6d17833f 2019-11-08 stsp .Bl -tag -width TOG_COLORS
373 6d17833f 2019-11-08 stsp .It Ev TOG_COLORS
374 6d17833f 2019-11-08 stsp .Nm
375 6d17833f 2019-11-08 stsp shows colorized output if this variable is set to a non-empty value.
376 6d17833f 2019-11-08 stsp The default color scheme can be modified by setting the environment
377 6d17833f 2019-11-08 stsp variables documented below.
378 6d17833f 2019-11-08 stsp The colors available in color schemes are
379 6d17833f 2019-11-08 stsp .Dq black ,
380 6d17833f 2019-11-08 stsp .Dq red ,
381 6d17833f 2019-11-08 stsp .Dq green ,
382 6d17833f 2019-11-08 stsp .Dq yellow ,
383 6d17833f 2019-11-08 stsp .Dq blue ,
384 6d17833f 2019-11-08 stsp .Dq megenta ,
385 1d7fe5cd 2019-11-08 stsp .Dq cyan ,
386 6d17833f 2019-11-08 stsp and
387 1d7fe5cd 2019-11-08 stsp .Dq default
388 1d7fe5cd 2019-11-08 stsp which maps to the terminal's default foreground color.
389 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_MINUS
390 6d17833f 2019-11-08 stsp The color used to mark up removed lines in diffs.
391 6d17833f 2019-11-08 stsp If not set, the default value
392 6d17833f 2019-11-08 stsp .Dq magenta
393 6d17833f 2019-11-08 stsp is used.
394 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_PLUS
395 6d17833f 2019-11-08 stsp The color used to mark up added lines in diffs.
396 6d17833f 2019-11-08 stsp If not set, the default value
397 6d17833f 2019-11-08 stsp .Dq cyan
398 6d17833f 2019-11-08 stsp is used.
399 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_CHUNK_HEADER
400 6d17833f 2019-11-08 stsp The color used to mark up chunk header lines in diffs.
401 6d17833f 2019-11-08 stsp If not set, the default value
402 6d17833f 2019-11-08 stsp .Dq yellow
403 6d17833f 2019-11-08 stsp is used.
404 6d17833f 2019-11-08 stsp .It Ev TOG_COLOR_DIFF_META
405 6d17833f 2019-11-08 stsp The color used to mark up meta data in diffs.
406 c0b01bdb 2019-11-08 stsp If not set, the default value
407 c0b01bdb 2019-11-08 stsp .Dq green
408 c0b01bdb 2019-11-08 stsp is used.
409 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SUBMODULE
410 c0b01bdb 2019-11-08 stsp The color used to mark up sobmodules tree entries.
411 c0b01bdb 2019-11-08 stsp If not set, the default value
412 c0b01bdb 2019-11-08 stsp .Dq magenta
413 c0b01bdb 2019-11-08 stsp is used.
414 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_SYMLINK
415 c0b01bdb 2019-11-08 stsp The color used to mark up symbolic link tree entries.
416 c0b01bdb 2019-11-08 stsp If not set, the default value
417 91b8c405 2020-01-25 stsp .Dq magenta
418 c0b01bdb 2019-11-08 stsp is used.
419 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_DIRECTORY
420 c0b01bdb 2019-11-08 stsp The color used to mark up directory tree entries.
421 6d17833f 2019-11-08 stsp If not set, the default value
422 91b8c405 2020-01-25 stsp .Dq cyan
423 c0b01bdb 2019-11-08 stsp is used.
424 c0b01bdb 2019-11-08 stsp .It Ev TOG_COLOR_TREE_EXECUTABLE
425 c0b01bdb 2019-11-08 stsp The color used to mark up executable file tree entries.
426 c0b01bdb 2019-11-08 stsp If not set, the default value
427 6d17833f 2019-11-08 stsp .Dq green
428 6d17833f 2019-11-08 stsp is used.
429 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_COMMIT
430 11b20872 2019-11-08 stsp The color used to mark up commit IDs.
431 11b20872 2019-11-08 stsp If not set, the default value
432 11b20872 2019-11-08 stsp .Dq green
433 11b20872 2019-11-08 stsp is used.
434 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_AUTHOR
435 11b20872 2019-11-08 stsp The color used to mark up author information.
436 11b20872 2019-11-08 stsp If not set, the default value
437 11b20872 2019-11-08 stsp .Dq cyan
438 11b20872 2019-11-08 stsp is used.
439 11b20872 2019-11-08 stsp .It Ev TOG_COLOR_DATE
440 11b20872 2019-11-08 stsp The color used to mark up date information.
441 11b20872 2019-11-08 stsp If not set, the default value
442 11b20872 2019-11-08 stsp .Dq yellow
443 11b20872 2019-11-08 stsp is used.
444 6d17833f 2019-11-08 stsp .El
445 030916b5 2018-07-12 stsp .Sh EXIT STATUS
446 030916b5 2018-07-12 stsp .Ex -std tog
447 030916b5 2018-07-12 stsp .Sh SEE ALSO
448 56b9a4ca 2019-06-21 stsp .Xr got 1 ,
449 56b9a4ca 2019-06-21 stsp .Xr git-repository 5 ,
450 56b9a4ca 2019-06-21 stsp .Xr re_format 7
451 030916b5 2018-07-12 stsp .Sh AUTHORS
452 030916b5 2018-07-12 stsp .An Stefan Sperling Aq Mt stsp@openbsd.org
453 bc3056e3 2019-08-18 stsp .An Joshua Stein Aq Mt jcs@openbsd.org