File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,22 @@ GIT index format
113
113
are encoded in 7-bit ASCII and the encoding cannot contain a NUL
114
114
byte (iow, this is a UNIX pathname).
115
115
116
+ (Version 4) In version 4, the entry path name is prefix-compressed
117
+ relative to the path name for the previous entry (the very first
118
+ entry is encoded as if the path name for the previous entry is an
119
+ empty string). At the beginning of an entry, an integer N in the
120
+ variable width encoding (the same encoding as the offset is encoded
121
+ for OFS_DELTA pack entries; see pack-format.txt) is stored, followed
122
+ by a NUL-terminated string S. Removing N bytes from the end of the
123
+ path name for the previous entry, and replacing it with the string S
124
+ yields the path name for this entry.
125
+
116
126
1-8 nul bytes as necessary to pad the entry to a multiple of eight bytes
117
127
while keeping the name NUL-terminated.
118
128
129
+ (Version 4) In version 4, the padding after the pathname does not
130
+ exist.
131
+
119
132
== Extensions
120
133
121
134
=== Cached tree
You can’t perform that action at this time.
0 commit comments