summaryrefslogtreecommitdiff
path: root/Documentation/technical/index-format.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-12-21 23:18:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-21 23:18:32 (GMT)
commitd34ccd6df743222d1bc135edd15504be93b2571b (patch)
treedaa228078eb68a9caf721e134c8432bc9fe3406c /Documentation/technical/index-format.txt
parent80c78e11a007d234dcbc173ad002fae8f80a3707 (diff)
parent4a6385fe555f810e8168399df673d00addffb721 (diff)
downloadgit-d34ccd6df743222d1bc135edd15504be93b2571b.zip
git-d34ccd6df743222d1bc135edd15504be93b2571b.tar.gz
git-d34ccd6df743222d1bc135edd15504be93b2571b.tar.bz2
Merge branch 'nd/index-format-doc'
* nd/index-format-doc: index-format.txt: clarify what is "invalid"
Diffstat (limited to 'Documentation/technical/index-format.txt')
-rw-r--r--Documentation/technical/index-format.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/technical/index-format.txt b/Documentation/technical/index-format.txt
index 57d6f91..7324154 100644
--- a/Documentation/technical/index-format.txt
+++ b/Documentation/technical/index-format.txt
@@ -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