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