Blob


1 .\"
2 .\" Copyright (c) 2017 Martin Pieuchot
3 .\" Copyright (c) 2018, 2019 Stefan Sperling
4 .\"
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
8 .\"
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .\"
17 .Dd $Mdocdate$
18 .Dt GOT 1
19 .Os
20 .Sh NAME
21 .Nm got
22 .Nd Game of Trees
23 .Sh SYNOPSIS
24 .Nm
25 .Ar command
26 .Op Fl h
27 .Op Ar arg ...
28 .Sh DESCRIPTION
29 .Nm
30 is a version control system which stores the history of tracked files
31 in a Git repository, as used by the Git version control system.
32 This repository format is described in
33 .Xr git-repository 5 .
34 .Pp
35 .Nm
36 is a
37 .Dq distributed
38 version control system because every copy of a repository is writeable.
39 Modifications made to files can be synchronized between repositories
40 at any time.
41 .Pp
42 Files managed by
43 .Nm
44 must be checked out from the repository for modification.
45 Checked out files are stored in a
46 .Em work tree
47 which can be placed at an arbitrary directory in the filesystem hierarchy.
48 The on-disk format of this work tree is described in
49 .Xr got-worktree 5 .
50 .Pp
51 .Nm
52 provides global and command-specific options.
53 Global options must precede the command name, and are as follows:
54 .Bl -tag -width tenletters
55 .It Fl h
56 Display usage information and exit immediately.
57 .It Fl V
58 Display program version and exit immediately.
59 .El
60 .Pp
61 The commands for
62 .Nm
63 are as follows:
64 .Bl -tag -width checkout
65 .It Cm init Ar repository-path
66 Create a new empty repository at the specified
67 .Ar repository-path .
68 .Pp
69 After
70 .Cm got init ,
71 the
72 .Cm got import
73 command must be used to populate the empty repository before
74 .Cm got checkout
75 can be used.
76 .It Cm in
77 Short alias for
78 .Cm init .
79 .It Cm import Oo Fl b Ar branch Oc Oo Fl m Ar message Oc Oo Fl r Ar repository-path Oc Oo Fl I Ar pattern Oc Ar directory
80 Create an initial commit in a repository from the file hierarchy
81 within the specified
82 .Ar directory .
83 The created commit will not have any parent commits, i.e. it will be a
84 root commit.
85 Also create a new reference which provides a branch name for the newly
86 created commit.
87 Show the path of each imported file to indicate progress.
88 .Pp
89 The
90 .Cm got import
91 command requires the
92 .Ev GOT_AUTHOR
93 environment variable to be set.
94 .Pp
95 The options for
96 .Cm got import
97 are as follows:
98 .Bl -tag -width Ds
99 .It Fl b Ar branch
100 Create the specified
101 .Ar branch
102 instead of creating the default branch
103 .Dq master .
104 Use of this option is required if the
105 .Dq master
106 branch already exists.
107 .It Fl m Ar message
108 Use the specified log message when creating the new commit.
109 Without the
110 .Fl m
111 option,
112 .Cm got import
113 opens a temporary file in an editor where a log message can be written.
114 .It Fl r Ar repository-path
115 Use the repository at the specified path.
116 If not specified, assume the repository is located at or above the current
117 working directory.
118 .It Fl I Ar pattern
119 Ignore files or directories with a name which matches the specified
120 .Ar pattern .
121 This option may be specified multiple times to build a list of ignore patterns.
122 The
123 .Ar pattern
124 follows the globbing rules documented in
125 .Xr glob 7 .
126 .El
127 .It Cm im
128 Short alias for
129 .Cm import .
130 .It Cm checkout Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Oo Fl p Ar path-prefix Oc Ar repository-path Op Ar work-tree-path
131 Copy files from a repository into a new work tree.
132 If the
133 .Ar work tree path
134 is not specified, either use the last component of
135 .Ar repository path ,
136 or if a
137 .Ar path prefix
138 was specified use the last component of
139 .Ar path prefix .
140 .Pp
141 The options for
142 .Cm got checkout
143 are as follows:
144 .Bl -tag -width Ds
145 .It Fl b Ar branch
146 Check out files from a commit on the specified
147 .Ar branch .
148 If this option is not specified, a branch resolved via the repository's HEAD
149 reference will be used.
150 .It Fl c Ar commit
151 Check out files from the specified
152 .Ar commit
153 on the selected branch.
154 The expected argument is a commit ID SHA1 hash or an existing reference
155 or tag name which will be resolved to a commit ID.
156 An abbreviated hash argument will be expanded to a full SHA1 hash
157 automatically, provided the abbreviation is unique.
158 If this option is not specified, the most recent commit on the selected
159 branch will be used.
160 .It Fl p Ar path-prefix
161 Restrict the work tree to a subset of the repository's tree hierarchy.
162 Only files beneath the specified
163 .Ar path-prefix
164 will be checked out.
165 .El
166 .It Cm co
167 Short alias for
168 .Cm checkout .
169 .It Cm update Oo Fl b Ar branch Oc Oo Fl c Ar commit Oc Op Ar path ...
170 Update an existing work tree to a different commit.
171 Show the status of each affected file, using the following status codes:
172 .Bl -column YXZ description
173 .It U Ta file was updated and contained no local changes
174 .It G Ta file was updated and local changes were merged cleanly
175 .It C Ta file was updated and conflicts occurred during merge
176 .It D Ta file was deleted
177 .It A Ta new file was added
178 .It \(a~ Ta versioned file is obstructed by a non-regular file
179 .It ! Ta a missing versioned file was restored
180 .El
181 .Pp
182 If no
183 .Ar path
184 is specified, update the entire work tree.
185 Otherwise, restrict the update operation to files at or within the
186 specified paths.
187 Each path is required to exist in the update operation's target commit.
188 Files in the work tree outside specified paths will remain unchanged and
189 will retain their previously recorded base commit.
190 Some
191 .Nm
192 commands may refuse to run while the work tree contains files from
193 multiple base commits.
194 The base commit of such a work tree can be made consistent by running
195 .Cm got update
196 across the entire work tree.
197 Specifying a
198 .Ar path
199 is incompatible with the
200 .Fl b
201 option.
202 .Pp
203 .Cm got update
204 cannot update paths with staged changes.
205 If changes have been staged with
206 .Cm got stage ,
207 these changes must first be committed with
208 .Cm got commit
209 or unstaged with
210 .Cm got unstage .
211 .Pp
212 The options for
213 .Cm got update
214 are as follows:
215 .Bl -tag -width Ds
216 .It Fl b Ar branch
217 Switch the work tree's branch reference to the specified
218 .Ar branch
219 before updating the work tree.
220 This option requires that all paths in the work tree are updated.
221 .It Fl c Ar commit
222 Update the work tree to the specified
223 .Ar commit .
224 The expected argument is a commit ID SHA1 hash or an existing reference
225 or tag name which will be resolved to a commit ID.
226 An abbreviated hash argument will be expanded to a full SHA1 hash
227 automatically, provided the abbreviation is unique.
228 If this option is not specified, the most recent commit on the work tree's
229 branch will be used.
230 .El
231 .It Cm up
232 Short alias for
233 .Cm update .
234 .It Cm status Op Ar path ...
235 Show the current modification status of files in a work tree,
236 using the following status codes:
237 .Bl -column YXZ description
238 .It M Ta modified file
239 .It A Ta file scheduled for addition in next commit
240 .It D Ta file scheduled for deletion in next commit
241 .It C Ta modified or added file which contains merge conflicts
242 .It ! Ta versioned file was expected on disk but is missing
243 .It \(a~ Ta versioned file is obstructed by a non-regular file
244 .It ? Ta unversioned item not tracked by
245 .Nm
246 .It N Ta non-existent
247 .Ar path
248 specified on the command line
249 .El
250 .Pp
251 If no
252 .Ar path
253 is specified, show modifications in the entire work tree.
254 Otherwise, show modifications at or within the specified paths.
255 .Pp
256 If changes have been staged with
257 .Cm got stage ,
258 staged changes are shown in the second output column, using the following
259 status codes:
260 .Bl -column YXZ description
261 .It M Ta file modification is staged
262 .It A Ta file addition is staged
263 .It D Ta file deletion is staged
264 .El
265 .Pp
266 Changes created on top of staged changes are indicated in the first column:
267 .Bl -column YXZ description
268 .It MM Ta file was modified after earlier changes have been staged
269 .It MA Ta file was modified after having been staged for addition
270 .El
271 .Pp
272 For compatibility with
273 .Xr cvs 1 ,
274 .Cm got status
275 parses
276 .Pa .cvsignore
277 files in each traversed directory and will not display unversioned files
278 which match
279 .Xr glob 7
280 ignore patterns contained in
281 .Pa .cvsignore
282 files.
283 Unlike
284 .Xr cvs 1 ,
285 .Cm got status
286 only supports a single ignore pattern per line.
287 .It Cm st
288 Short alias for
289 .Cm status .
290 .It Cm log Oo Fl c Ar commit Oc Oo Fl C Ar number Oc Oo Fl f Oc Oo Fl l Ar N Oc Oo Fl p Oc Oo Fl r Ar repository-path Oc Op Ar path
291 Display history of a repository.
292 If a
293 .Ar path
294 is specified, show only commits which modified this path.
295 .Pp
296 The options for
297 .Cm got log
298 are as follows:
299 .Bl -tag -width Ds
300 .It Fl c Ar commit
301 Start traversing history at the specified
302 .Ar commit .
303 The expected argument is a commit ID SHA1 hash or an existing reference
304 or tag name which will be resolved to a commit ID.
305 An abbreviated hash argument will be expanded to a full SHA1 hash
306 automatically, provided the abbreviation is unique.
307 If this option is not specified, default to the work tree's current branch
308 if invoked in a work tree, or to the repository's HEAD reference.
309 .It Fl C Ar number
310 Set the number of context lines shown in diffs with
311 .Fl p .
312 By default, 3 lines of context are shown.
313 .It Fl f
314 Restrict history traversal to the first parent of each commit.
315 This shows the linear history of the current branch only.
316 Merge commits which affected the current branch will be shown but
317 individual commits which originated on other branches will be omitted.
318 .It Fl l Ar N
319 Limit history traversal to a given number of commits.
320 If this option is not specified, a default limit value of zero is used,
321 which is treated as an unbounded limit.
322 The
323 .Ev GOT_LOG_DEFAULT_LIMIT
324 environment variable may be set to change this default value.
325 .It Fl p
326 Display the patch of modifications made in each commit.
327 If a
328 .Ar path
329 is specified, only show the patch of modifications at or within this path.
330 .It Fl r Ar repository-path
331 Use the repository at the specified path.
332 If not specified, assume the repository is located at or above the current
333 working directory.
334 If this directory is a
335 .Nm
336 work tree, use the repository path associated with this work tree.
337 .El
338 .It Cm diff Oo Fl C Ar number Oc Oo Fl r Ar repository-path Oc Oo Fl s Oc Op Ar object1 Ar object2 | Ar path
339 When invoked within a work tree with less than two arguments, display
340 uncommitted changes in the work tree.
341 If a
342 .Ar path
343 is specified, only show changes within this path.
344 .Pp
345 If two arguments are provided, treat each argument as a reference, a tag
346 name, or an object ID SHA1 hash, and display differences between the
347 corresponding objects.
348 Both objects must be of the same type (blobs, trees, or commits).
349 An abbreviated hash argument will be expanded to a full SHA1 hash
350 automatically, provided the abbreviation is unique.
351 .Pp
352 The options for
353 .Cm got diff
354 are as follows:
355 .Bl -tag -width Ds
356 .It Fl C Ar number
357 Set the number of context lines shown in the diff.
358 By default, 3 lines of context are shown.
359 .It Fl r Ar repository-path
360 Use the repository at the specified path.
361 If not specified, assume the repository is located at or above the current
362 working directory.
363 If this directory is a
364 .Nm
365 work tree, use the repository path associated with this work tree.
366 .It Fl s
367 Show changes staged with
368 .Cm got stage
369 instead of showing local changes.
370 This option is only valid when
371 .Cm got diff
372 is invoked in a work tree.
373 .El
374 .It Cm di
375 Short alias for
376 .Cm diff .
377 .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
378 Display line-by-line history of a file at the specified path.
379 .Pp
380 The options for
381 .Cm got blame
382 are as follows:
383 .Bl -tag -width Ds
384 .It Fl c Ar commit
385 Start traversing history at the specified
386 .Ar commit .
387 The expected argument is a commit ID SHA1 hash or an existing reference
388 or tag name which will be resolved to a commit ID.
389 An abbreviated hash argument will be expanded to a full SHA1 hash
390 automatically, provided the abbreviation is unique.
391 .It Fl r Ar repository-path
392 Use the repository at the specified path.
393 If not specified, assume the repository is located at or above the current
394 working directory.
395 If this directory is a
396 .Nm
397 work tree, use the repository path associated with this work tree.
398 .El
399 .It Cm bl
400 Short alias for
401 .Cm blame .
402 .It Cm tree Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Oo Fl i Oc Oo Fl R Oc Op Ar path
403 Display a listing of files and directories at the specified
404 directory path in the repository.
405 Entries shown in this listing may carry one of the following trailing
406 annotations:
407 .Bl -column YXZ description
408 .It @ Ta entry is a symbolic link
409 .It / Ta entry is a directory
410 .It * Ta entry is an executable file
411 .It $ Ta entry is a Git submodule
412 .El
413 .Pp
414 If no
415 .Ar path
416 is specified, list the repository path corresponding to the current
417 directory of the work tree, or the root directory of the repository
418 if there is no work tree.
419 .Pp
420 The options for
421 .Cm got tree
422 are as follows:
423 .Bl -tag -width Ds
424 .It Fl c Ar commit
425 List files and directories as they appear in the specified
426 .Ar commit .
427 The expected argument is a commit ID SHA1 hash or an existing reference
428 or tag name which will be resolved to a commit ID.
429 An abbreviated hash argument will be expanded to a full SHA1 hash
430 automatically, provided the abbreviation is unique.
431 .It Fl r Ar repository-path
432 Use the repository at the specified path.
433 If not specified, assume the repository is located at or above the current
434 working directory.
435 If this directory is a
436 .Nm
437 work tree, use the repository path associated with this work tree.
438 .It Fl i
439 Show object IDs of files (blob objects) and directories (tree objects).
440 .It Fl R
441 Recurse into sub-directories in the repository.
442 .El
443 .It Cm tr
444 Short alias for
445 .Cm tree .
446 .It Cm ref Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl d Ar name Oc Oo Fl s Oc Op Ar name Ar target
447 Manage references in a repository.
448 .Pp
449 If no options are passed, expect two arguments and attempt to create,
450 or update, the reference with the given
451 .Ar name ,
452 and make it point at the given
453 .Ar target .
454 The target may be an object ID SHA1 hash or an existing reference which
455 will be resolved to an object ID.
456 An abbreviated hash argument will be expanded to a full SHA1 hash
457 automatically, provided the abbreviation is unique.
458 .Pp
459 The options for
460 .Cm got ref
461 are as follows:
462 .Bl -tag -width Ds
463 .It Fl r Ar repository-path
464 Use the repository at the specified path.
465 If not specified, assume the repository is located at or above the current
466 working directory.
467 If this directory is a
468 .Nm
469 work tree, use the repository path associated with this work tree.
470 .It Fl l
471 List all existing references in the repository.
472 .It Fl d Ar name
473 Delete the reference with the specified name from the repository.
474 .It Fl s
475 Create a symbolic reference pointing at the specified
476 .Ar target ,
477 which must be an existing reference.
478 Care should be taken not to create loops between references when
479 this option is used.
480 .El
481 .It Cm branch Oo Fl r Ar repository-path Oc Oo Fl l Oc Oo Fl d Ar name Oc Op Ar name Op Ar commit
482 Manage branches in a repository.
483 .Pp
484 Branches are managed via references which live in the
485 .Dq refs/heads/
486 reference namespace.
487 The
488 .Cm got branch
489 command operates on references in this namespace only.
490 .Pp
491 If no options are passed, expect one or two arguments and attempt to create
492 a branch reference with the given
493 .Ar name ,
494 and make it point at the given
495 .Ar commit .
496 The expected
497 .Ar commit
498 argument is a commit ID SHA1 hash or an existing reference
499 or tag name which will be resolved to a commit ID.
500 If no
501 .Ar commit
502 is specified, default to the latest commit on the work tree's current
503 branch if invoked in a work tree, or to a commit resolved via the
504 repository's HEAD reference.
505 .Pp
506 The options for
507 .Cm got branch
508 are as follows:
509 .Bl -tag -width Ds
510 .It Fl r Ar repository-path
511 Use the repository at the specified path.
512 If not specified, assume the repository is located at or above the current
513 working directory.
514 If this directory is a
515 .Nm
516 work tree, use the repository path associated with this work tree.
517 .It Fl l
518 List all existing branches in the repository.
519 If invoked in a work tree, the work tree's current branch is shown
520 with one the following annotations:
521 .Bl -column YXZ description
522 .It * Ta work tree's base commit matches the branch tip
523 .It \(a~ Ta work tree's base commit is out-of-date
524 .El
525 .It Fl d Ar name
526 Delete the branch with the specified name from the repository.
527 Only the branch reference is deleted.
528 Any commit, tree, and blob objects belonging to the branch
529 remain in the repository and may be removed separately with
530 Git's garbage collector.
531 .El
532 .It Cm br
533 Short alias for
534 .Cm branch .
535 .It Cm tag Oo Fl m Ar message Oc Oo Fl r Ar repository-path Oc Oo Fl l Oc Ar name Op Ar commit Oc
536 Manage tags in a repository.
537 .Pp
538 Tags are managed via references which live in the
539 .Dq refs/tags/
540 reference namespace.
541 The
542 .Cm got tag
543 command operates on references in this namespace only.
544 References in this namespace point at tag objects which contain a pointer
545 to another object, a tag message, as well as author and timestamp information.
546 .Pp
547 Expect one or two arguments and attempt to create a tag with the given
548 .Ar name ,
549 and make this tag point at the given
550 .Ar commit .
551 If no commit is specified, default to the latest commit on the work tree's
552 current branch if invoked in a work tree, and to a commit resolved via
553 the repository's HEAD reference otherwise.
554 Otherwise, the expected argument is a commit ID SHA1 hash or an existing
555 reference or tag name which will be resolved to a commit ID.
556 An abbreviated hash argument will be expanded to a full SHA1 hash
557 automatically, provided the abbreviation is unique.
558 .Pp
559 The options for
560 .Cm got tag
561 are as follows:
562 .Bl -tag -width Ds
563 .It Fl m Ar message
564 Use the specified tag message when creating the new tag
565 Without the
566 .Fl m
567 option,
568 .Cm got import
569 opens a temporary file in an editor where a tag message can be written.
570 .It Fl r Ar repository-path
571 Use the repository at the specified path.
572 If not specified, assume the repository is located at or above the current
573 working directory.
574 If this directory is a
575 .Nm
576 work tree, use the repository path associated with this work tree.
577 .It Fl l
578 List all existing tags in the repository instead of creating a new tag.
579 If this option is used, no other command-line arguments are allowed.
580 .El
581 .Pp
582 By design, the
583 .Cm got tag
584 command will not delete tags or change existing tags.
585 If a tag must be deleted, the
586 .Cm got ref
587 command may be used to delete a tag's reference.
588 This should only be done if the tag has not already been copied to
589 another repository.
590 .It Cm add Ar file-path ...
591 Schedule unversioned files in a work tree for addition to the
592 repository in the next commit.
593 .It Cm remove Ar file-path ...
594 Remove versioned files from a work tree and schedule them for deletion
595 from the repository in the next commit.
596 .Pp
597 The options for
598 .Cm got remove
599 are as follows:
600 .Bl -tag -width Ds
601 .It Fl f
602 Perform the operation even if a file contains uncommitted modifications.
603 .El
604 .It Cm rm
605 Short alias for
606 .Cm remove .
607 .It Cm revert Oo Fl p Oc Oo Fl F Ar response-script Oc Oo Fl R Oc Ar path ...
608 Revert any uncommitted changes in files at the specified paths.
609 File contents will be overwritten with those contained in the
610 work tree's base commit.
611 There is no way to bring discarded changes back after
612 .Cm got revert !
613 .Pp
614 If a file was added with
615 .Cm got add
616 it will become an unversioned file again.
617 If a file was deleted with
618 .Cm got remove
619 it will be restored.
620 .Pp
621 The options for
622 .Cm got revert
623 are as follows:
624 .Bl -tag -width Ds
625 .It Fl p
626 Instead of reverting all changes in files, interactively select or reject
627 changes to revert based on
628 .Dq y
629 (revert change),
630 .Dq n
631 (keep change), and
632 .Dq q
633 (quit reverting this file) responses.
634 If a file is in modified status, individual patches derived from the
635 modified file content can be reverted.
636 Files in added or deleted status may only be reverted in their entirety.
637 .It Fl F Ar response-script
638 With the
639 .Fl p
640 option, read
641 .Dq y ,
642 .Dq n ,
643 and
644 .Dq q
645 responses line-by-line from the specified
646 .Ar response-script
647 file instead of prompting interactively.
648 .It Fl R
649 Permit recursion into directories.
650 If this option is not specified,
651 .Cm got revert
652 will refuse to run if a specified
653 .Ar path
654 is a directory.
655 .El
656 .It Cm rv
657 Short alias for
658 .Cm revert .
659 .It Cm commit Oo Fl m Ar message Oc Op Ar path ...
660 Create a new commit in the repository from changes in a work tree
661 and use this commit as the new base commit for the work tree.
662 If no
663 .Ar path
664 is specified, commit all changes in the work tree.
665 Otherwise, commit changes at or within the specified paths.
666 .Pp
667 If changes have been explicitly staged for commit with
668 .Cm got stage ,
669 only commit staged changes and reject any specified paths which
670 have not been staged.
671 .Pp
672 Show the status of each affected file, using the following status codes:
673 .Bl -column YXZ description
674 .It M Ta modified file
675 .It D Ta file was deleted
676 .It A Ta new file was added
677 .El
678 .Pp
679 Files which are not part of the new commit will retain their previously
680 recorded base commit.
681 Some
682 .Nm
683 commands may refuse to run while the work tree contains files from
684 multiple base commits.
685 The base commit of such a work tree can be made consistent by running
686 .Cm got update
687 across the entire work tree.
688 .Pp
689 The
690 .Cm got commit
691 command requires the
692 .Ev GOT_AUTHOR
693 environment variable to be set.
694 .Pp
695 The options for
696 .Cm got commit
697 are as follows:
698 .Bl -tag -width Ds
699 .It Fl m Ar message
700 Use the specified log message when creating the new commit.
701 Without the
702 .Fl m
703 option,
704 .Cm got commit
705 opens a temporary file in an editor where a log message can be written.
706 .El
707 .Pp
708 .Cm got commit
709 will refuse to run if certain preconditions are not met.
710 If the work tree's current branch is not in the
711 .Dq refs/heads/
712 reference namespace, new commits may not be created on this branch.
713 Local changes may only be committed if they are based on file content
714 found in the most recent commit on the work tree's branch.
715 If a path is found to be out of date,
716 .Cm got update
717 must be used first in order to merge local changes with changes made
718 in the repository.
719 .It Cm ci
720 Short alias for
721 .Cm commit .
722 .It Cm cherrypick Ar commit
723 Merge changes from a single
724 .Ar commit
725 into the work tree.
726 The specified
727 .Ar commit
728 must be on a different branch than the work tree's base commit.
729 The expected argument is a reference or a commit ID SHA1 hash.
730 An abbreviated hash argument will be expanded to a full SHA1 hash
731 automatically, provided the abbreviation is unique.
732 .Pp
733 Show the status of each affected file, using the following status codes:
734 .Bl -column YXZ description
735 .It G Ta file was merged
736 .It C Ta file was merged and conflicts occurred during merge
737 .It ! Ta changes destined for a missing file were not merged
738 .It D Ta file was deleted
739 .It d Ta file's deletion was obstructed by local modifications
740 .It A Ta new file was added
741 .It \(a~ Ta changes destined for a non-regular file were not merged
742 .El
743 .Pp
744 The merged changes will appear as local changes in the work tree, which
745 may be viewed with
746 .Cm got diff ,
747 amended manually or with further
748 .Cm got cherrypick
749 commands,
750 committed with
751 .Cm got commit ,
752 or discarded again with
753 .Cm got revert .
754 .Pp
755 .Cm got cherrypick
756 will refuse to run if certain preconditions are not met.
757 If the work tree contains multiple base commits it must first be updated
758 to a single base commit with
759 .Cm got update .
760 If the work tree already contains files with merge conflicts, these
761 conflicts must be resolved first.
762 .It Cm cy
763 Short alias for
764 .Cm cherrypick .
765 .It Cm backout Ar commit
766 Reverse-merge changes from a single
767 .Ar commit
768 into the work tree.
769 The specified
770 .Ar commit
771 must be on the same branch as the work tree's base commit.
772 The expected argument is a reference or a commit ID SHA1 hash.
773 An abbreviated hash argument will be expanded to a full SHA1 hash
774 automatically, provided the abbreviation is unique.
775 .Pp
776 Show the status of each affected file, using the following status codes:
777 .Bl -column YXZ description
778 .It G Ta file was merged
779 .It C Ta file was merged and conflicts occurred during merge
780 .It ! Ta changes destined for a missing file were not merged
781 .It D Ta file was deleted
782 .It d Ta file's deletion was obstructed by local modifications
783 .It A Ta new file was added
784 .It \(a~ Ta changes destined for a non-regular file were not merged
785 .El
786 .Pp
787 The reverse-merged changes will appear as local changes in the work tree,
788 which may be viewed with
789 .Cm got diff ,
790 amended manually or with further
791 .Cm got backout
792 commands,
793 committed with
794 .Cm got commit ,
795 or discarded again with
796 .Cm got revert .
797 .Pp
798 .Cm got backout
799 will refuse to run if certain preconditions are not met.
800 If the work tree contains multiple base commits it must first be updated
801 to a single base commit with
802 .Cm got update .
803 If the work tree already contains files with merge conflicts, these
804 conflicts must be resolved first.
805 .It Cm bo
806 Short alias for
807 .Cm backout .
808 .It Cm rebase Oo Fl a Oc Oo Fl c Oc Op Ar branch
809 Rebase commits on the specified
810 .Ar branch
811 onto the tip of the current branch of the work tree.
812 The
813 .Ar branch
814 must share common ancestry with the work tree's current branch.
815 Rebasing begins with the first descendant commit of the youngest
816 common ancestor commit shared by the specified
817 .Ar branch
818 and the work tree's current branch, and stops once the tip commit
819 of the specified
820 .Ar branch
821 has been rebased.
822 .Pp
823 Rebased commits are accumulated on a temporary branch which the work tree
824 will remain switched to throughout the entire rebase operation.
825 Commits on this branch represent the same changes with the same log
826 messages as their counterparts on the original
827 .Ar branch ,
828 but with different commit IDs.
829 Once rebasing has completed successfully, the temporary branch becomes
830 the new version of the specified
831 .Ar branch
832 and the work tree is automatically switched to it.
833 .Pp
834 While rebasing commits, show the status of each affected file,
835 using the following status codes:
836 .Bl -column YXZ description
837 .It G Ta file was merged
838 .It C Ta file was merged and conflicts occurred during merge
839 .It ! Ta changes destined for a missing file were not merged
840 .It D Ta file was deleted
841 .It d Ta file's deletion was obstructed by local modifications
842 .It A Ta new file was added
843 .It \(a~ Ta changes destined for a non-regular file were not merged
844 .El
845 .Pp
846 If merge conflicts occur the rebase operation is interrupted and may
847 be continued once conflicts have been resolved.
848 Alternatively, the rebase operation may be aborted which will leave
849 .Ar branch
850 unmodified and the work tree switched back to its original branch.
851 .Pp
852 If a merge conflict is resolved in a way which renders the merged
853 change into a no-op change, the corresponding commit will be elided
854 when the rebase operation continues.
855 .Pp
856 .Cm got rebase
857 will refuse to run if certain preconditions are not met.
858 If the work tree contains multiple base commits it must first be updated
859 to a single base commit with
860 .Cm got update .
861 If changes have been staged with
862 .Cm got stage ,
863 these changes must first be committed with
864 .Cm got commit
865 or unstaged with
866 .Cm got unstage .
867 If the work tree contains local changes, these changes must first be
868 committed with
869 .Cm got commit
870 or reverted with
871 .Cm got revert .
872 If the
873 .Ar branch
874 contains changes to files outside of the work tree's path prefix,
875 the work tree cannot be used to rebase this branch.
876 .Pp
877 The
878 .Cm got update
879 and
880 .Cm got commit
881 commands will refuse to run while a rebase operation is in progress.
882 Other commands which manipulate the work tree may be used for
883 conflict resolution purposes.
884 .Pp
885 The options for
886 .Cm got rebase
887 are as follows:
888 .Bl -tag -width Ds
889 .It Fl a
890 Abort an interrupted rebase operation.
891 If this option is used, no other command-line arguments are allowed.
892 .It Fl c
893 Continue an interrupted rebase operation.
894 If this option is used, no other command-line arguments are allowed.
895 .El
896 .It Cm rb
897 Short alias for
898 .Cm rebase .
899 .It Cm histedit Oo Fl a Oc Oo Fl c Oc Op Fl F Ar histedit-script
900 Edit commit history between the work tree's current base commit and
901 the tip commit of the work tree's current branch.
902 .Pp
903 Editing of commit history is controlled via a
904 .Ar histedit script
905 which can be edited interactively or passed on the command line.
906 The format of the histedit script is line-based.
907 Each line in the script begins with a command name, followed by
908 whitespace and an argument.
909 For most commands, the expected argument is a commit ID SHA1 hash.
910 Any remaining text on the line is ignored.
911 Lines which begin with the
912 .Sq #
913 character are ignored entirely.
914 .Pp
915 The available commands are as follows:
916 .Bl -column YXZ pick-commit
917 .It pick Ar commit Ta Use the specified commit as it is.
918 .It edit Ar commit Ta Use the specified commit but once changes have been
919 merged into the work tree interrupt the histedit operation for amending.
920 .It fold Ar commit Ta Combine the specified commit with the next commit
921 listed further below that will be used.
922 .It drop Ar commit Ta Remove this commit from the edited history.
923 .It mesg Ar log-message Ta Use the specified single-line log message for
924 the commit on the previous line.
925 If the log message argument is left empty, open an editor where a new
926 log message can be written.
927 .El
928 .Pp
929 Every commit in the history being edited must be mentioned in the script.
930 Lines may be re-ordered to change the order of commits in the edited history.
931 .Pp
932 Edited commits are accumulated on a temporary branch which the work tree
933 will remain switched to throughout the entire histedit operation.
934 Once history editing has completed successfully, the temporary branch becomes
935 the new version of the work tree's branch and the work tree is automatically
936 switched to it.
937 .Pp
938 While merging commits, show the status of each affected file,
939 using the following status codes:
940 .Bl -column YXZ description
941 .It G Ta file was merged
942 .It C Ta file was merged and conflicts occurred during merge
943 .It ! Ta changes destined for a missing file were not merged
944 .It D Ta file was deleted
945 .It d Ta file's deletion was obstructed by local modifications
946 .It A Ta new file was added
947 .It \(a~ Ta changes destined for a non-regular file were not merged
948 .El
949 .Pp
950 If merge conflicts occur the histedit operation is interrupted and may
951 be continued once conflicts have been resolved.
952 Alternatively, the histedit operation may be aborted which will leave
953 the work tree switched back to its original branch.
954 .Pp
955 If a merge conflict is resolved in a way which renders the merged
956 change into a no-op change, the corresponding commit will be elided
957 when the histedit operation continues.
958 .Pp
959 .Cm got histedit
960 will refuse to run if certain preconditions are not met.
961 If the work tree's current branch is not in the
962 .Dq refs/heads/
963 reference namespace, the history of the branch may not be edited.
964 If the work tree contains multiple base commits it must first be updated
965 to a single base commit with
966 .Cm got update .
967 If changes have been staged with
968 .Cm got stage ,
969 these changes must first be committed with
970 .Cm got commit
971 or unstaged with
972 .Cm got unstage .
973 If the work tree contains local changes, these changes must first be
974 committed with
975 .Cm got commit
976 or reverted with
977 .Cm got revert .
978 If the edited history contains changes to files outside of the work tree's
979 path prefix, the work tree cannot be used to edit the history of this branch.
980 .Pp
981 The
982 .Cm got update
983 command will refuse to run while a histedit operation is in progress.
984 Other commands which manipulate the work tree may be used, and the
985 .Cm got commit
986 command may be used to commit arbitrary changes to the temporary branch
987 while the histedit operation is interrupted.
988 .Pp
989 The options for
990 .Cm got histedit
991 are as follows:
992 .Bl -tag -width Ds
993 .It Fl a
994 Abort an interrupted histedit operation.
995 If this option is used, no other command-line arguments are allowed.
996 .It Fl c
997 Continue an interrupted histedit operation.
998 If this option is used, no other command-line arguments are allowed.
999 .El
1000 .It Cm he
1001 Short alias for
1002 .Cm histedit .
1003 .It Cm stage Oo Fl l Oc Oo Fl p Oc Oo Fl F Ar response-script Oc Op Ar path ...
1004 Stage local changes for inclusion in the next commit.
1005 If no
1006 .Ar path
1007 is specified, stage all changes in the work tree.
1008 Otherwise, stage changes at or within the specified paths.
1009 Paths may be staged if they are added, modified, or deleted according to
1010 .Cm got status .
1011 .Pp
1012 Show the status of each affected file, using the following status codes:
1013 .Bl -column YXZ description
1014 .It A Ta file addition has been staged
1015 .It M Ta file modification has been staged
1016 .It D Ta file deletion has been staged
1017 .El
1018 .Pp
1019 Staged file contents are saved in newly created blob objects in the repository.
1020 These blobs will be referred to by tree objects once staged changes have been
1021 committed.
1022 .Pp
1023 Staged changes affect the behaviour of
1024 .Cm got commit ,
1025 .Cm got status ,
1026 and
1027 .Cm got diff .
1028 While paths with staged changes exist, the
1029 .Cm got commit
1030 command will refuse to commit any paths which do not have staged changes.
1031 Local changes created on top of staged changes can only be committed if
1032 the path is staged again, or if the staged changes are committed first.
1033 The
1034 .Cm got status
1035 command will show both local changes and staged changes.
1036 The
1037 .Cm got diff
1038 command is able to display local changes relative to staged changes,
1039 and to display staged changes relative to the repository.
1040 The
1041 .Cm got revert
1042 command cannot revert staged changes but may be used to revert
1043 local changes created on top of staged changes.
1044 .Pp
1045 The options for
1046 .Cm got stage
1047 are as follows:
1048 .Bl -tag -width Ds
1049 .It Fl l
1050 Instead of staging new changes, list paths which are already staged,
1051 along with the IDs of staged blob objects and stage status codes.
1052 If paths were provided in the command line show the staged paths
1053 among the specified paths.
1054 Otherwise, show all staged paths.
1055 .It Fl p
1056 Instead of staging the entire content of a changed file, interactively
1057 select or reject changes for staging based on
1058 .Dq y
1059 (stage change),
1060 .Dq n
1061 (reject change), and
1062 .Dq q
1063 (quit staging this file) responses.
1064 If a file is in modified status, individual patches derived from the
1065 modified file content can be staged.
1066 Files in added or deleted status may only be staged or rejected in
1067 their entirety.
1068 .It Fl F Ar response-script
1069 With the
1070 .Fl p
1071 option, read
1072 .Dq y ,
1073 .Dq n ,
1074 and
1075 .Dq q
1076 responses line-by-line from the specified
1077 .Ar response-script
1078 file instead of prompting interactively.
1079 .El
1080 .Pp
1081 .Cm got stage
1082 will refuse to run if certain preconditions are not met.
1083 If a file contains merge conflicts, these conflicts must be resolved first.
1084 If a file is found to be out of date relative to the head commit on the
1085 work tree's current branch, the file must be updated with
1086 .Cm got update
1087 before it can be staged (however, this does not prevent the file from
1088 becoming out-of-date at some point after having been staged).
1089 .Pp
1090 The
1091 .Cm got update ,
1092 .Cm got rebase ,
1093 and
1094 .Cm got histedit
1095 commands will refuse to run while staged changes exist.
1096 If staged changes cannot be committed because a staged path
1097 is out of date, the path must be unstaged with
1098 .Cm got unstage
1099 before it can be updated with
1100 .Cm got update ,
1101 and may then be staged again if necessary.
1102 .It Cm sg
1103 Short alias for
1104 .Cm stage .
1105 .It Cm unstage Oo Fl p Oc Oo Fl F Ar response-script Oc Op Ar path ...
1106 Merge staged changes back into the work tree and put affected paths
1107 back into non-staged status.
1108 If no
1109 .Ar path
1110 is specified, unstage all staged changes across the entire work tree.
1111 Otherwise, unstage changes at or within the specified paths.
1112 .Pp
1113 Show the status of each affected file, using the following status codes:
1114 .Bl -column YXZ description
1115 .It G Ta file was unstaged
1116 .It C Ta file was unstaged and conflicts occurred during merge
1117 .It ! Ta changes destined for a missing file were not merged
1118 .It D Ta file was staged as deleted and still is deleted
1119 .It d Ta file's deletion was obstructed by local modifications
1120 .It \(a~ Ta changes destined for a non-regular file were not merged
1121 .El
1122 .Pp
1123 The options for
1124 .Cm got unstage
1125 are as follows:
1126 .Bl -tag -width Ds
1127 .It Fl p
1128 Instead of unstaging the entire content of a changed file, interactively
1129 select or reject changes for unstaging based on
1130 .Dq y
1131 (unstage change),
1132 .Dq n
1133 (keep change staged), and
1134 .Dq q
1135 (quit unstaging this file) responses.
1136 If a file is staged in modified status, individual patches derived from the
1137 staged file content can be unstaged.
1138 Files staged in added or deleted status may only be unstaged in their entirety.
1139 .It Fl F Ar response-script
1140 With the
1141 .Fl p
1142 option, read
1143 .Dq y ,
1144 .Dq n ,
1145 and
1146 .Dq q
1147 responses line-by-line from the specified
1148 .Ar response-script
1149 file instead of prompting interactively.
1150 .El
1151 .It Cm ug
1152 Short alias for
1153 .Cm unstage .
1154 .It Cm cat Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar arg ...
1155 Parse and print contents of objects to standard output in a line-based
1156 text format.
1157 Content of commit, tree, and tag objects is printed in a way similar
1158 to the actual content stored in such objects.
1159 Blob object contents are printed as they would appear in files on disk.
1160 .Pp
1161 Attempt to interpret each argument as a reference, a tag name, or
1162 an object ID SHA1 hash.
1163 References will be resolved to an object ID.
1164 Tag names will resolved to a tag object.
1165 An abbreviated hash argument will be expanded to a full SHA1 hash
1166 automatically, provided the abbreviation is unique.
1167 .Pp
1168 If none of the above interpretations produce a valid result, or if the
1169 .Fl P
1170 option is used, attempt to interpret the argument as a path which will
1171 be resolved to the ID of an object found at this path in the repository.
1172 .Pp
1173 The options for
1174 .Cm got cat
1175 are as follows:
1176 .Bl -tag -width Ds
1177 .It Fl c Ar commit
1178 Look up paths in the specified
1179 .Ar commit .
1180 If this option is not used, paths are looked up in the commit resolved
1181 via the repository's HEAD reference.
1182 The expected argument is a commit ID SHA1 hash or an existing reference
1183 or tag name which will be resolved to a commit ID.
1184 An abbreviated hash argument will be expanded to a full SHA1 hash
1185 automatically, provided the abbreviation is unique.
1186 .It Fl r Ar repository-path
1187 Use the repository at the specified path.
1188 If not specified, assume the repository is located at or above the current
1189 working directory.
1190 If this directory is a
1191 .Nm
1192 work tree, use the repository path associated with this work tree.
1193 .It Fl P
1194 Interpret all arguments as paths only.
1195 This option can be used to resolve ambiguity in cases where paths
1196 look like tag names, reference names, or object IDs.
1197 .El
1198 .El
1199 .Sh ENVIRONMENT
1200 .Bl -tag -width GOT_AUTHOR
1201 .It Ev GOT_AUTHOR
1202 The author's name and email address for
1203 .Cm got commit
1204 and
1205 .Cm got import ,
1206 for example:
1207 .An Flan Hacker Aq Mt flan_hacker@openbsd.org .
1208 Because
1209 .Xr git 1
1210 may fail to parse commits without an email address in author data,
1211 .Nm
1212 attempts to reject
1213 .Ev GOT_AUTHOR
1214 environment variables with a missing email address.
1215 .It Ev VISUAL , EDITOR
1216 The editor spawned by
1217 .Cm got commit ,
1218 .Cm got import ,
1220 .Cm got tag .
1221 .It Ev GOT_LOG_DEFAULT_LIMIT
1222 The default limit on the number of commits traversed by
1223 .Cm got log .
1224 If set to zero, the limit is unbounded.
1225 This variable will be silently ignored if it is set to a non-numeric value.
1226 .El
1227 .Sh EXIT STATUS
1228 .Ex -std got
1229 .Sh EXAMPLES
1230 Clone an existing Git repository for use with
1231 .Nm .
1232 This step currently requires
1233 .Xr git 1 :
1234 .Pp
1235 .Dl $ cd /var/git/
1236 .Dl $ git clone --bare https://github.com/openbsd/src.git
1237 .Pp
1238 Alternatively, for quick and dirty local testing of
1239 .Nm
1240 a new Git repository could be created and populated with files,
1241 e.g. from a temporary CVS checkout located at
1242 .Pa /tmp/src :
1243 .Pp
1244 .Dl $ got init /var/git/src.git
1245 .Dl $ got import -r /var/git/src.git -I CVS -I obj /tmp/src
1246 .Pp
1247 Check out a work tree from the Git repository to /usr/src:
1248 .Pp
1249 .Dl $ got checkout /var/git/src.git /usr/src
1250 .Pp
1251 View local changes in a work tree directory:
1252 .Pp
1253 .Dl $ got status
1254 .Dl $ got diff | less
1255 .Pp
1256 Interactively revert selected local changes in a work tree directory:
1257 .Pp
1258 .Dl $ got revert -p -R\ .
1259 .Pp
1260 In a work tree or a git repository directory, list all branch references:
1261 .Pp
1262 .Dl $ got branch -l
1263 .Pp
1264 In a work tree or a git repository directory, create a new branch called
1265 .Dq unified-buffer-cache
1266 which is forked off the
1267 .Dq master
1268 branch:
1269 .Pp
1270 .Dl $ got branch unified-buffer-cache master
1271 .Pp
1272 Switch an existing work tree to the branch
1273 .Dq unified-buffer-cache .
1274 Local changes in the work tree will be preserved and merged if necessary:
1275 .Pp
1276 .Dl $ got update -b unified-buffer-cache
1277 .Pp
1278 Create a new commit from local changes in a work tree directory.
1279 This new commit will become the head commit of the work tree's current branch:
1280 .Pp
1281 .Dl $ got commit
1282 .Pp
1283 In a work tree or a git repository directory, view changes committed in
1284 the 3 most recent commits to the work tree's branch, or the branch resolved
1285 via the repository's HEAD reference, respectively:
1286 .Pp
1287 .Dl $ got log -p -l 3 -f
1288 .Pp
1289 Add new files and remove obsolete files in a work tree directory:
1290 .Pp
1291 .Dl $ got add sys/uvm/uvm_ubc.c
1292 .Dl $ got remove sys/uvm/uvm_vnode.c
1293 .Pp
1294 Create a new commit from local changes in a work tree directory
1295 with a pre-defined log message.
1296 .Pp
1297 .Dl $ got commit -m 'unify the buffer cache'
1298 .Pp
1299 Update any work tree checked out from the
1300 .Dq unified-buffer-cache
1301 branch to the latest commit on this branch:
1302 .Pp
1303 .Dl $ got update
1304 .Pp
1305 Roll file content on the unified-buffer-cache branch back by one commit,
1306 and then fetch the rolled-back change into the work tree as a local change
1307 to be amended and perhaps committed again:
1308 .Pp
1309 .Dl $ got backout unified-buffer-cache
1310 .Dl $ got commit -m 'roll back previous'
1311 .Dl $ # now back out the previous backout :-)
1312 .Dl $ got backout unified-buffer-cache
1313 .Pp
1314 Fetch new upstream commits into the local repository's master branch.
1315 This step currently requires
1316 .Xr git 1 :
1317 .Pp
1318 .Dl $ cd /var/git/src.git
1319 .Dl $ git fetch origin master:master
1320 .Pp
1321 Rebase the
1322 .Dq unified-buffer-cache
1323 branch on top of the new head commit of the
1324 .Dq master
1325 branch.
1326 .Pp
1327 .Dl $ got update -b master
1328 .Dl $ got rebase unified-buffer-cache
1329 .Pp
1330 Create a patch from all changes on the unified-buffer-cache branch.
1331 The patch can be mailed out for review and applied to
1332 .Ox Ns 's
1333 CVS tree:
1334 .Pp
1335 .Dl $ got diff master unified-buffer-cache > /tmp/ubc.diff
1336 .Pp
1337 Edit the entire commit history of the
1338 .Dq unified-buffer-cache
1339 branch:
1340 .Pp
1341 .Dl $ got update -b unified-buffer-cache
1342 .Dl $ got update -c master
1343 .Dl $ got histedit
1344 .Pp
1345 Additional steps are necessary if local changes need to be pushed back
1346 to the remote repository, which currently requires
1347 .Cm git fetch
1348 and
1349 .Cm git push .
1350 Before working against existing branches in a repository cloned with
1351 .Dq git clone --bare ,
1352 a Git
1353 .Dq refspec
1354 must be configured to map all references in the remote repository
1355 into the
1356 .Dq refs/remotes
1357 namespace of the local repository.
1358 This can achieved by setting Git's
1359 .Pa remote.origin.fetch
1360 configuration variable to the value
1361 .Dq +refs/heads/*:refs/remotes/origin/*
1362 with the
1363 .Cm git config
1364 command:
1365 .Pp
1366 .Dl $ cd /var/git/repo
1367 .Dl $ git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
1368 .Pp
1369 Alternatively, the following
1370 .Pa fetch
1371 configuration item can be added manually to the Git repository's
1372 .Pa config
1373 file:
1374 .Pp
1375 .Dl [remote "origin"]
1376 .Dl url = ...
1377 .Dl fetch = +refs/heads/*:refs/remotes/origin/*
1378 .Pp
1379 This configuration leaves the local repository's
1380 .Dq refs/heads
1381 namespace free for use by local branches checked out with
1382 .Cm got checkout
1383 and, if needed, created with
1384 .Cm got branch .
1385 .Pp
1386 Branches in the
1387 .Dq remotes/origin
1388 namespace can be updated with incoming changes from the remote
1389 repository with
1390 .Cm git fetch :
1391 .Pp
1392 .Dl $ cd /var/git/repo
1393 .Dl $ git fetch
1394 .Pp
1395 Before outgoing changes on the local
1396 .Dq master
1397 branch can be pushed to the remote repository, the local
1398 .Dq master
1399 branch must be rebased onto the
1400 .Dq origin/master
1401 branch:
1402 .Pp
1403 .Dl $ got update -b origin/master
1404 .Dl $ got rebase master
1405 .Pp
1406 Changes on the local
1407 .Dq master
1408 branch can then be pushed to the remote
1409 repository with
1410 .Cm git push :
1411 .Pp
1412 .Dl $ cd /var/git/repo
1413 .Dl $ git push origin master
1414 .Sh SEE ALSO
1415 .Xr tog 1 ,
1416 .Xr git-repository 5 ,
1417 .Xr got-worktree 5
1418 .Sh AUTHORS
1419 .An Stefan Sperling Aq Mt stsp@openbsd.org
1420 .An Martin Pieuchot Aq Mt mpi@openbsd.org
1421 .An Joshua Stein Aq Mt jcs@openbsd.org
1422 .Sh CAVEATS
1423 .Nm
1424 is a work-in-progress and many commands remain to be implemented.
1425 At present, the user has to fall back on
1426 .Xr git 1
1427 to perform many tasks, in particular tasks related to repository
1428 administration and tasks which require a network connection.