We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccc3ae7 + 4a6385f commit df54d59Copy full SHA for df54d59
Documentation/technical/index-format.txt
@@ -161,8 +161,9 @@ GIT index format
161
this span of index as a tree.
162
163
An entry can be in an invalidated state and is represented by having
164
- -1 in the entry_count field. In this case, there is no object name
165
- and the next entry starts immediately after the newline.
+ a negative number in the entry_count field. In this case, there is no
+ object name and the next entry starts immediately after the newline.
166
+ When writing an invalid entry, -1 should always be used as entry_count.
167
168
The entries are written out in the top-down, depth-first order. The
169
first entry represents the root level of the repository, followed by the
0 commit comments