mirror of
https://github.com/git/git.git
synced 2024-10-19 15:18:24 +02:00
Merge branch 'nd/index-format-doc'
* nd/index-format-doc: index-format.txt: clarify what is "invalid"
This commit is contained in:
commit
d34ccd6df7
@ -161,8 +161,9 @@ GIT index format
|
|||||||
this span of index as a tree.
|
this span of index as a tree.
|
||||||
|
|
||||||
An entry can be in an invalidated state and is represented by having
|
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
|
a negative number in the entry_count field. In this case, there is no
|
||||||
and the next entry starts immediately after the newline.
|
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
|
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
|
first entry represents the root level of the repository, followed by the
|
||||||
|
Loading…
Reference in New Issue
Block a user