Skip to content

Commit 3a2ebae

Browse files
chooglengitster
authored andcommitted
docs: document zero bits in index "mode"
Documentation/gitformat-index.txt describes the "mode" as 32 bits, but only documents 16 bits. Document the missing 16 bits and specify that 'unused' bits must be zero. Signed-off-by: Glen Choo <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 844ede3 commit 3a2ebae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/gitformat-index.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ Git index format
8383

8484
32-bit mode, split into (high to low bits)
8585

86+
16-bit unused, must be zero
87+
8688
4-bit object type
8789
valid values in binary are 1000 (regular file), 1010 (symbolic link)
8890
and 1110 (gitlink)
8991

90-
3-bit unused
92+
3-bit unused, must be zero
9193

9294
9-bit unix permission. Only 0755 and 0644 are valid for regular files.
9395
Symbolic links and gitlinks have value 0 in this field.

0 commit comments

Comments
 (0)