Skip to content

Commit df54d59

Browse files
committed
Merge branch 'nd/index-format-doc' into maint
* nd/index-format-doc: index-format.txt: clarify what is "invalid"
2 parents ccc3ae7 + 4a6385f commit df54d59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/technical/index-format.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ GIT index format
161161
this span of index as a tree.
162162

163163
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.
164+
a negative number in the entry_count field. In this case, there is no
165+
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.
166167

167168
The entries are written out in the top-down, depth-first order. The
168169
first entry represents the root level of the repository, followed by the

0 commit comments

Comments
 (0)