commit def5be4aadc523fb06cc518f5a474b31317c3a80 from: Stefan Sperling date: Tue Aug 31 07:59:03 2021 UTC sync man pages commit - 4ce11894649c3fdf5a3a23442e6a22b8564fb1c6 commit + def5be4aadc523fb06cc518f5a474b31317c3a80 blob - 2798429e876babacc3721592a2208f90615b8299 blob + 00731b881a126ef7bb1e27882f24a7309c0d1802 --- git-repository.5.html +++ git-repository.5.html @@ -219,8 +219,8 @@ - - + +
July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
blob - 8f88f9a971c0004540365afc05bf1f03efa41558 blob + e5faf2d3b241076853ed96c519591943dc5a75c8 --- got-worktree.5.html +++ got-worktree.5.html @@ -192,8 +192,8 @@ - - + +
July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
blob - 770fb11dd8b69572909351aefb4a07dfd00e8f55 blob + dd66a0796c152d5fff8b41f87e9cb714ae161654 --- got.1.html +++ got.1.html @@ -940,8 +940,12 @@
Create, list, or delete branches.

Local branches are managed via references which live in the “refs/heads/” reference namespace. The - got branch command creates or deletes references - in this namespace only.

+ got branch command creates references in this + namespace only.

+

When deleting branches the specified + name is searched in the “refs/heads” + reference namespace first. If no corresponding branch is found the + “refs/remotes” namespace will be searched next.

If invoked in a work tree without any arguments, print the name of the work tree's current branch.

If a name argument is passed, attempt to @@ -1020,11 +1024,14 @@

name
-
Delete the branch with the specified name from the repository. Only - the branch reference is deleted. Any commit, tree, and blob objects - belonging to the branch remain in the repository and may be removed - separately with Git's garbage collector or gotadmin - cleanup.
+
Delete the branch with the specified name from + the “refs/heads” or “refs/remotes” + reference namespace. +

Only the branch reference is deleted. Any commit, tree, + and blob objects belonging to the branch remain in the repository + and may be removed separately with Git's garbage collector or + gotadmin cleanup.

+
Do not switch and update the work tree after creating a new branch.
@@ -1271,6 +1278,134 @@
Short alias for commit.
+
+ [-a] [-b + branch] [-d + branch] [-f] + [-r repository-path] + [-t tag] + [-T] [-q] + [-v] [remote-repository]
+
Send new changes to a remote repository. If no + remote-repository is specified, + “origin” will be used. The remote repository's URL is + obtained from the corresponding entry in got.conf(5) or + Git's config file of the local repository, as + created by got clone. +

All objects corresponding to new changes will be written to a + temporary pack file which is then uploaded to the server. Upon success, + references in the “refs/remotes/” reference namespace of + the local repository will be updated to point at the commits which have + been sent.

+

By default, changes will only be sent if they are based on + up-to-date copies of relevant branches in the remote repository. If any + changes to be sent are based on out-of-date copies or would otherwise + break linear history of existing branches, new changes must be fetched + from the server with got fetch and local + branches must be rebased with got rebase before + got send can succeed. The + -f option can be used to make exceptions to + these requirements.

+

The options for got send are as + follows:

+
+
+
Send all branches from the local repository's + “refs/heads/” reference namespace. The + -a option is equivalent to listing all + branches with multiple -b options. Cannot be + used together with the -b option.
+
+ branch
+
Send the specified branch from the local + repository's “refs/heads/” reference namespace. This + option may be specified multiple times to build a list of branches to + send. If this option is not specified, default to the work tree's + current branch if invoked in a work tree, or to the repository's HEAD + reference. Cannot be used together with the -a + option.
+
+ branch
+
Delete the specified branch from the remote + repository's “refs/heads/” reference namespace. This + option may be specified multiple times to build a list of branches to + delete. +

Only references are deleted. Any commit, tree, tag, and + blob objects belonging to deleted branches may become subject to + deletion by Git's garbage collector running on the server.

+

Requesting deletion of branches results in an error if the + server does not support this feature or disallows the deletion of + branches based on its configuration.

+
+
+
Attempt to force the server to overwrite existing branches or tags in + the remote repository, even when got fetch and + got rebase would usually be required before + changes can be sent. The server may reject forced requests regardless, + depending on its configuration. +

Any commit, tree, tag, and blob objects belonging to + overwritten branches or tags may become subject to deletion by Git's + garbage collector running on the server.

+

The “refs/tags” reference namespace is + globally shared between all repositories. Use of the + -f option to overwrite tags is discouraged + because it can lead to inconsistencies between the tags present in + different repositories. In general, creating a new tag with a + different name is recommended instead of overwriting an existing + tag.

+

Use of the -f option is + particularly discouraged if changes being sent are based on an + out-of-date copy of a branch in the remote repository. Instead of + using the -f option, new changes should be + fetched with got fetch and local branches + should be rebased with got rebase, followed + by another attempt to send the changes.

+

The -f option should only be + needed in situations where the remote repository's copy of a branch + or tag is known to be out-of-date and is considered disposable. The + risks of creating inconsistencies between different repositories + should also be taken into account.

+
+
+ repository-path
+
Use the repository at the specified path. If not specified, assume the + repository is located at or above the current working directory. If + this directory is a got work tree, use the + repository path associated with this work tree.
+
+ tag
+
Send the specified tag from the local + repository's “refs/tags/” reference namespace, in + addition to any branches that are being sent. The + -t option may be specified multiple times to + build a list of tags to send. No tags will be sent if the + -t option is not used. +

Raise an error if the specified tag + already exists in the remote repository, unless the + -f option is used to overwrite the server's + copy of the tag. In general, creating a new tag with a different + name is recommended instead of overwriting an existing tag.

+

Cannot be used together with the + -T option.

+
+
+
Attempt to send all tags from the local repository's + “refs/tags/” reference namespace. The + -T option is equivalent to listing all tags + with multiple -t options. Cannot be used + together with the -t option.
+
+
Suppress progress reporting output. The same option will be passed to + ssh(1) if applicable.
+
+
Verbose mode. Causes got send to print + debugging messages to standard error output. The same option will be + passed to ssh(1) if applicable. Multiple -v options + increase the verbosity. The maximum is 3.
+
+
+
+
Short alias for send.
commit
Merge changes from a single commit into the work @@ -1484,7 +1619,7 @@

The options for got rebase are as follows:

-
+
Abort an interrupted rebase operation. If this option is used, no other command-line arguments are allowed.
@@ -1666,13 +1801,13 @@

The options for got histedit are as follows:

-
+
Abort an interrupted histedit operation. If this option is used, no other command-line arguments are allowed.
Continue an interrupted histedit operation. If this option is used, no other command-line arguments are allowed.
-
+
Fold all commits into a single commit. This option is a quick equivalent to a histedit script which folds all commits, combining them all into one commit. The -f option can @@ -1955,7 +2090,7 @@ hash or an existing reference or tag name which will be resolved to a commit ID. An abbreviated hash argument will be expanded to a full SHA1 hash automatically, provided the abbreviation is unique.
-
+
repository-path
Use the repository at the specified path. If not specified, assume the repository is located at or above the current working directory. If @@ -1993,12 +2128,12 @@ email address in author data, got attempts to reject GOT_AUTHOR environment variables with a missing email address. -

GOT_AUTHOR will be overriden by configuration - settings in got.conf(5) or by Git's +

GOT_AUTHOR will be overridden by + configuration settings in got.conf(5) or by + Git's user.name and + user.email configuration settings in the + repository's .git/config file. The user.name and user.email - configuration settings in the repository's - .git/config file. The - user.name and user.email configuration settings contained in Git's global ~/.gitconfig configuration file will only be used if neither got.conf(5) nor the @@ -2045,6 +2180,11 @@

+

Enable tab-completion of got command names + in ksh(1):

+

+
$ set -A complete_got -- $(got -h + 2>&1 | sed -n s/commands://p)

Clone an existing Git repository for use with got.

@@ -2165,7 +2305,8 @@ :-)
$ got backout unified-buffer-cache
-

Fetch new upstream commits into the local repository's +

Fetch new changes on the remote repository's + “master” branch, making them visible on the local repository's “origin/master” branch:

$ cd /usr/src
@@ -2204,30 +2345,9 @@ unified-buffer-cache
$ got update -c master
$ got histedit
-

In order to merge changes committed to the - “unified-buffer-cache” branch back into the - “master” branch, the “unified-buffer-cache” - branch must first be rebased onto the “master” branch:

-

-
$ got update -b master
-
$ got rebase - unified-buffer-cache
-

Changes on the “unified-buffer-cache” branch can now - be made visible on the “master” branch with - got integrate. Because the rebase operation switched - the work tree to the “unified-buffer-cache” branch, the work - tree must be switched back to the “master” branch before the - “unified-buffer-cache” branch can be integrated into - “master”:

-

-
$ got update -b master
-
$ got integrate - unified-buffer-cache
-

Additional steps may be necessary if local changes need to be - pushed back to the remote repository, which currently requires - git push. Before working against existing branches - in a repository cloned with git clone --bare instead - of got clone, a Git “refspec” must be +

Before working against existing branches in a repository cloned + with git clone --bare instead of + got clone, a Git “refspec” must be configured to map all references in the remote repository into the “refs/remotes” namespace of the local repository. This can be achieved by setting Git's remote.origin.fetch @@ -2257,22 +2377,47 @@

This configuration leaves the local repository's “refs/heads” namespace free for use by local branches checked out with got checkout and, if needed, created with - got branch.

-

Branches in the “remotes/origin” namespace can now - be updated with incoming changes from the remote repository with - got fetch or git-fetch(1) without - extra command line arguments:

+ got branch. Branches in the + “refs/remotes/origin” namespace can now be updated with + incoming changes from the remote repository with got + fetch or git-fetch(1) without extra command line + arguments. Newly fetched changes can be examined with got + log.

+

Display changes on the remote repository's version of the + “master” branch, as of the last time got + fetch was run:

-
$ cd /var/git/repo
-
$ git fetch
-

To make changes fetched from the remote repository appear on the - “master” branch, the “master” branch must be - rebased onto the “origin/master” branch. This will also merge - local changes, if any, with the incoming changes:

+
$ got log -c origin/master | + less
+

As shown here, most commands accept abbreviated reference names + such as “origin/master” instead of + “refs/remotes/origin/master”. The latter is only needed in + case of ambiguity.

+

got rebase must be used to merge changes + which are visible on the “origin/master” branch into the + “master” branch. This will also merge local changes, if any, + with the incoming changes:

$ got update -b origin/master
$ got rebase master
+

In order to make changes committed to the + “unified-buffer-cache” visible on the “master” + branch, the “unified-buffer-cache” branch must first be + rebased onto the “master” branch:

+

+
$ got update -b master
+
$ got rebase + unified-buffer-cache
+

Changes on the “unified-buffer-cache” branch can now + be made visible on the “master” branch with + got integrate. Because the rebase operation switched + the work tree to the “unified-buffer-cache” branch the work + tree must be switched back to the “master” branch first:

+

+
$ got update -b master
+
$ got integrate + unified-buffer-cache

On the “master” branch, log messages for local changes can now be amended with “OK” by other developers and any other important new information:

@@ -2280,10 +2425,19 @@
$ got update -c origin/master
$ got histedit -m
-

Local changes on the “master” branch can then be - pushed to the remote repository with git push:

+

If the remote repository offers write access local changes on the + “master” branch can be sent to the remote repository with + got send. Usually, got send + can be run without further arguments. The arguments shown here match + defaults, provided the work tree's current branch is the + “master” branch:

-
$ cd /var/git/repo
+
$ got send -b master + origin
+

If the remote repository requires the HTTPS protocol the + git-push(1) command must be used instead:

+

+
$ cd /var/git/src.git
$ git push origin master
@@ -2316,7 +2470,7 @@
  • Reading from remote repositories over HTTP or HTTPS protocols requires git-clone(1) and git-fetch(1).
  • -
  • Writing to remote repositories, over any protocol, requires +
  • Writing to remote repositories over HTTP or HTTPS protocols requires git-push(1).
  • The creation of merge commits, i.e. commits with two or more parent commits, requires git-merge(1).
  • @@ -2329,8 +2483,8 @@ - - + +
    July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
    blob - cfb12a5769afa1275f9ee0baf2367881df6cddf6 blob + c24d5f778d09e76339ea8d7b56c49ab17bb16ebd --- gotadmin.1.html +++ gotadmin.1.html @@ -181,9 +181,9 @@
    Short alias for listpack.
    - [-p] [-n] - [-r repository-path] - [-q]
    + [-a] [-p] + [-n] [-r + repository-path] [-q]
    Purge unreferenced loose objects from the repository and display the amount of disk space which has been freed as a result.

    Unreferenced objects are present in the repository but cannot @@ -232,6 +232,12 @@

    The options for gotadmin cleanup are as follows:

    +
    +
    Delete all loose objects. By default, objects which are newer than an + implementation-defined modification timestamp are kept on disk to + prevent race conditions with other commands that add new objects to + the repository while gotadmin cleanup is + running.
    Instead of purging unreferenced loose objects, remove any pack index files which do not have a corresponding pack file.
    @@ -297,8 +303,8 @@ - - + +
    July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
    blob - 011f90f4a88440f68a85d0f2428b898b0ebdef3d blob + 27300db94ed9414c413489e57d5952e963c1a275 --- gotweb.8.html +++ gotweb.8.html @@ -155,8 +155,8 @@ - - + +
    July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
    blob - 50baea2dddb65793188e253e507b1ba17c7a4079 blob + c5b94de96924a4d54f77897fda23f1d816135761 --- gotweb.conf.5.html +++ gotweb.conf.5.html @@ -171,8 +171,8 @@ got_logo_url "https://gameoftrees.org" - - + +
    July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0
    blob - c3ef08b221c1861f7e0bdd3c95cf3d9ef2a7f707 blob + 2a8f8cac86ea79acd8b24ac2a9d8b6d604a9fd53 --- tog.1.html +++ tog.1.html @@ -136,6 +136,15 @@
    Move the selection cursor up one page.
    +
    +
    Move the cursor to the newest commit.
    +
    +
    Move the cursor to the oldest commit. This will traverse all commits + on the current branch which may take a long time depending on the + number of commits in branch history. If needed this operation can be + cancelled with Backspace.
    Open a diff view showing file changes made in @@ -145,8 +154,9 @@ currently selected commit.
    Show log entries for the parent directory of the currently selected - path, unless an active search is in progress in which case - Backspace aborts the search.
    + path. However when an active search is in progress or when additional + commits are loaded, Backspace aborts the + running operation.
    Prompt for a search pattern and start searching for matching commits. The search pattern is an extended regular expression which is matched @@ -228,6 +238,12 @@
    Scroll up one page.
    +
    +
    Scroll to the top of the view.
    +
    +
    Scroll to the bottom of the view.
    Reduce the amount of diff context lines.
    @@ -489,7 +505,7 @@ the environment variables documented below. The colors available in color schemes are “black”, “red”, “green”, “yellow”, “blue”, - “megenta”, “cyan”, and “default” + “magenta”, “cyan”, and “default” which maps to the terminal's default foreground color.
The color used to mark up removed lines in diffs. If not set, the default @@ -504,7 +520,7 @@
The color used to mark up meta data in diffs. If not set, the default value “green” is used.
-
The color used to mark up sobmodules tree entries. If not set, the default +
The color used to mark up submodule tree entries. If not set, the default value “magenta” is used.
The color used to mark up symbolic link tree entries. If not set, the @@ -561,8 +577,8 @@ - - + +
July 26, 2021OpenBSD 6.9August 31, 2021OpenBSD 7.0