{"thread":{"id":"27926","subject":"[PATCH] Documentation: clarify the invalidated tree entry format","startedAt":"2011-07-26T12:27:57Z","lastAt":"2011-07-26T12:27:57Z","messageCount":1,"participants":["Carlos Martín Nieto"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"172057","messageId":"1311683277-17910-1-git-send-email-cmn@elego.de","threadId":"27926","inReplyTo":null,"subject":"[PATCH] Documentation: clarify the invalidated tree entry format","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2011-07-26T12:27:57Z","receivedAt":"2011-07-26T12:27:57Z","isPatch":true,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"When the entry_count is -1, the tree is invalidated and therefore has\nnot associated hash (or object name). Explicitly state that the next\nentry starts after the newline.\n\nSigned-off-by: Carlos Martín Nieto <cmn@elego.de>\n---\n\nThis might be considered obvious, but IMO the hash (ojbect name) could\njust as well be zeroed out and ignored by the parser. At any rate,\nit's good to be explicit.\n\n Documentation/technical/index-format.txt |    5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/technical/index-format.txt b/Documentation/technical/index-format.txt\nindex 7b233ca..8930b3f 100644\n--- a/Documentation/technical/index-format.txt\n+++ b/Documentation/technical/index-format.txt\n@@ -147,8 +147,9 @@ GIT index format\n   - 160-bit object name for the object that would result from writing\n     this span of index as a tree.\n \n-  An entry can be in an invalidated state and is represented by having -1\n-  in the entry_count field.\n+  An entry can be in an invalidated state and is represented by having\n+  -1 in the entry_count field. In this case, there is no object name\n+  and the next entry starts immediately after the newline.\n \n   The entries are written out in the top-down, depth-first order.  The\n   first entry represents the root level of the repository, followed by the\n-- \n1.7.5.2.585.gfbd48\n"}]}