Skip to content

Commit

Permalink
Merge branch 'nd/index-format-doc'
Browse files Browse the repository at this point in the history
* nd/index-format-doc:
  index-format.txt: clarify what is "invalid"
  • Loading branch information
Junio C Hamano committed Dec 21, 2012
2 parents 80c78e1 + 4a6385f commit d34ccd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/technical/index-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ GIT index format
this span of index as a tree.

An entry can be in an invalidated state and is represented by having
-1 in the entry_count field. In this case, there is no object name
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.
When writing an invalid entry, -1 should always be used as entry_count.

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

0 comments on commit d34ccd6

Please sign in to comment.