summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-07-26 12:27:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-01 01:23:49 (GMT)
commite44b6df90cfd6ccbf35c3d147ff5a0e4e22fb17a (patch)
tree3572ee6741b2d95b14d994a1604f93269c578ae3
parent2579e1d2936ad4e385ef21e5c346d9853d7faa01 (diff)
downloadgit-e44b6df90cfd6ccbf35c3d147ff5a0e4e22fb17a.zip
git-e44b6df90cfd6ccbf35c3d147ff5a0e4e22fb17a.tar.gz
git-e44b6df90cfd6ccbf35c3d147ff5a0e4e22fb17a.tar.bz2
Documentation: clarify the invalidated tree entry format
When the entry_count is -1, the tree is invalidated and therefore has not associated hash (or object name). Explicitly state that the next entry starts after the newline. Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-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 7b233ca..8930b3f 100644
--- a/Documentation/technical/index-format.txt
+++ b/Documentation/technical/index-format.txt
@@ -147,8 +147,9 @@ GIT index format
- 160-bit object name for the object that would result from writing
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.
+ 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.
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