commit 61cf2aeb409bbc15842d2c850331220a62e858e3 from: Stefan Sperling date: Tue Aug 06 09:53:56 2019 UTC sync man page commit - 76f4d96c0d35611360f16e50db97eb7066b66ca7 commit + 61cf2aeb409bbc15842d2c850331220a62e858e3 blob - d35246c26f62ef46974c6b88eb99528c7011e75c blob + f1f5a0c44daa73a9e037d8b419e217364a0672a3 --- got-worktree.5.html +++ got-worktree.5.html @@ -78,10 +78,51 @@ A Got work tree stores a file hierar may still need to be updated to match file content stored in the base commit.
Flags
-
A flags field (intentionally not documented).
+
This field contains the length, according to strlen(3), + of path data which follows, and the following flags: +
+
STAGE
+
Reflects the added, modified, or deleted staged state of a path staged + with got stage.
+
NOT_FLUSHED
+
The entry was added to the file index in memory and does not exist in + file index data read from disk. This happens to files which are added + to the work tree while operations such as got + checkout, got update, + got cherrypick, got + backout, got rebase, and + got histedit are in progress. This flag is + always cleared before the entry is written to disk.
+
NO_BLOB
+
The entry's on-disk file's content in the work tree is not based on a + blob in the repository. The blob object ID of this entry must be + considered invalid. This happens when unversioned files are added with + got add and when files are added to the work + tree by operations such as got cherrypick, + got backout, got + rebase, and got histedit.
+
NO_COMMIT
+
The entry is not based on a commit in the repository. The commit + object ID of this entry must be considered invalid. This happens when + unversioned files are added with got add and + when files are added to the work tree by operations such as + got cherrypick, got + backout, got rebase, and + got histedit.
+
NO_FILE_ON_DISK
+
The entry has no corresponding on-disk file in the work tree. This + happens when files are removed with got + remove.
+
+
Path data
The path of the entry, relative to the work tree root. Path data is of variable length and NUL-padded to a multiple of 8 bytes.
+
Staged blob object ID
+
The SHA1 hash of a blob object containing file content which has been + staged for commit. The hash is stored as binary data. Only present if a + file addition or modification has been staged with got + stage.

A corrupt or missing file index can be recreated on demand with got update. When the file index is modified, it is @@ -133,7 +174,7 @@ A Got work tree stores a file hierar - +
August 5, 2019August 6, 2019 OpenBSD 6.5