commit feee69235741e6885f9ecc0c9989e4b1315e34e6
from: Stefan Sperling got(1), deflate(3),
- SHA1(3), got-worktree(5)SEE
ALSO
August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |
got-worktree
— Got
- worktree format
got-worktree
—
+ Game of Trees work tree format
got
stage
.
-A corrupt or missing file index can be recreated on demand with
- got update
. When the file index is modified, it is
- read into memory in its entirety, modified in place, and written to a
- temporary file. This temporary file is then moved on top of the old file
- index with rename(2). This ensures that no other processes
- see an inconsistent file index which is in the process of being written.
A corrupt or missing file index can be recreated on demand as + follows:
+ +$ mv .got/file-index
+ .got/file-index.bad
$ got update # re-create
+ .got/file-index
$ find . -type f -exec touch
+ {} \; # update timestamp of all files
$ got update # sync
+ timestamps
When the file index is modified, it is read into memory in its + entirety, modified in place, and written to a temporary file. This temporary + file is then moved on top of the old file index with + rename(2). This ensures that no other processes see an + inconsistent file index which is in the process of being written.
Work tree meta data must only be modified while the work tree's lock file has been exclusively locked with lockf(3).
@@ -155,6 +165,9 @@got(1), rename(2), stat(2), umask(2), - lockf(3), git-repository(5)
+ lockf(3), git-repository(5), + got.conf(5)August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |
The got import
command requires the
GOT_AUTHOR
environment variable to be set,
- unless Git's user.name
and
+ unless an author has been configured in got.conf(5) or
+ Git's user.name
and
user.email
configuration settings can be
obtained from the repository's .git/config file
or from Git's global ~/.gitconfig configuration
@@ -178,10 +179,10 @@
time. More details about the pack file format are documented in
git-repository(5).
got clone
creates a remote repository
- entry in the config file of the cloned
- repository to store the repository-url for future
- use by got fetch
or
- git-fetch(1).
got fetch
or git-fetch(1).
The options for got clone
are as
follows:
The repository's config file will - be set up with the “mirror” option enabled, such that +
The repository's got.conf(5) and
+ config files will be set up with the
+ “mirror” option enabled, such that
got fetch
or git-fetch(1)
will write incoming changes directly to branches in the
“refs/heads/” reference namespace, rather than to
@@ -266,9 +268,9 @@
got clone
.
+ obtained from the corresponding entry in got.conf(5) or
+ Git's config file of the local repository, as
+ created by got clone
.
New changes will be stored in a separate pack file downloaded from the server. Optionally, separate pack files stored in the repository can be combined with git-repack(1).
@@ -523,6 +525,7 @@up
update
.status
+ [-s
status-codes]
[path ...]The options for got status
are as
+ follows:
-s
+ status-codesFor compatibility with cvs(1) and
git(1), got status
reads
glob(7) patterns from
@@ -686,7 +701,7 @@
-s
+ -s
search-patterngot
work tree, use the
repository path associated with this work tree.-s
-s
got stage
instead of
showing local changes in the work tree. This option is only valid when
got diff
is invoked in a work tree.-r
.
- -s
+ -s
referenceremove
[-f
] [-k
]
- [-R
] path ...-R
] [-s
+ status-codes] path ...
The options for got remove
are as
@@ -1067,6 +1083,24 @@
got remove
will refuse to run if a specified
path is a directory.-s
+ status-codesM | +modified file (this implies the -f
+ option) |
+
! | +versioned file expected on disk but missing | +
rm
The got commit
command requires the
GOT_AUTHOR
environment variable to be set,
- unless Git's user.name
and
+ unless an author has been configured in got.conf(5) or
+ Git's user.name
and
user.email
configuration settings can be
obtained from the repository's .git/config file
or from Git's global ~/.gitconfig configuration
@@ -1809,21 +1844,25 @@
email address in author data, got
attempts to
reject GOT_AUTHOR
environment variables with a
missing email address.
-
If present, Git's user.name
- and user.email
configuration settings in the
- repository's .git/config file will override the
- value of GOT_AUTHOR
. However, the
+
GOT_AUTHOR will be overriden 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 contained in Git's global
- ~/.gitconfig configuration file will be used
- only if the GOT_AUTHOR
environment variable is
- not set.
GOT_AUTHOR
environment variable provide author
+ information.
VISUAL
,
EDITOR
got commit
,
- got import
, or got
- tag
.got histedit
, got import
,
+ or got tag
. If not set, the
+ ed(1) text editor will be spawned in order to give
+ ed(1) the attention it deserves.
GOT_LOG_DEFAULT_LIMIT
got log
. If set to zero, the limit is unbounded.
@@ -1832,6 +1871,24 @@
got
. If
+ present, a got.conf(5) configuration file located in the
+ root directory of a Git repository supersedes any relevant settings in
+ Git's config file.
+
+ got
.
+ If present, a got.conf configuration file in the
+ .got meta-data directory of a work tree supersedes
+ any relevant settings in the repository's got.conf(5)
+ configuration file and Git's config file.The got
utility exits 0 on success,
@@ -1865,8 +1922,11 @@
/usr/src
View local changes in a work tree directory:
-$ got status
$ got diff | less
In a work tree, display files in a potentially problematic + state:
+ +$ got status -s 'C!~?'
Interactively revert selected local changes in a work tree directory:
@@ -2084,7 +2144,7 @@August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |
August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |
August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |
August 2, 2020 | +September 17, 2020 | OpenBSD 6.7 |