]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: document zero bits in index "mode"
authorGlen Choo <chooglen@google.com>
Wed, 1 Feb 2023 02:40:41 +0000 (10:40 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2023 16:49:23 +0000 (08:49 -0800)
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 <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitformat-index.txt

index 015cb21bdc089a30e5403877ca1c61bea2b04e24..0773e5c3800392b8d4a548519b70379501207054 100644 (file)
@@ -83,11 +83,13 @@ Git index format
 
   32-bit mode, split into (high to low bits)
 
+    16-bit unused, must be zero
+
     4-bit object type
       valid values in binary are 1000 (regular file), 1010 (symbolic link)
       and 1110 (gitlink)
 
-    3-bit unused
+    3-bit unused, must be zero
 
     9-bit unix permission. Only 0755 and 0644 are valid for regular files.
     Symbolic links and gitlinks have value 0 in this field.