Merge branch 'gc/index-format-doc'

Doc update.

* gc/index-format-doc:
  docs: document zero bits in index "mode"
This commit is contained in:
Junio C Hamano
2023-02-09 14:40:46 -08:00

View File

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