{"thread":{"id":"7124","subject":"[PATCH 1/9] Display the null SHA-1 as the base for an OBJ_OFS_DELTA.","startedAt":"2007-03-07T01:44:08Z","lastAt":"2007-03-07T01:44:08Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":9},"messages":[{"id":"36514","messageId":"20070307014408.GB26482@spearce.org","threadId":"7124","inReplyTo":null,"subject":"[PATCH 1/9] Display the null SHA-1 as the base for an OBJ_OFS_DELTA.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-03-07T01:44:08Z","receivedAt":"2007-03-07T01:44:08Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Because we are currently cheating and never supplying the delta base\nfor an OBJ_OFS_DELTA we get a random SHA-1 in the delta base field.\nInstead lets clear the hash out so its at least all 0's.  This is\nsomewhat more obvious that something fishy is going on, like we\ndon't actually have the SHA-1 of the base handy.  :)\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n sha1_file.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/sha1_file.c b/sha1_file.c\nindex 6d0a72e..c13ef66 100644\n--- a/sha1_file.c\n+++ b/sha1_file.c\n@@ -1200,6 +1200,7 @@ const char *packed_object_info_detail(struct packed_git *p,\n \t\t\tobj_offset = get_delta_base(p, &w_curs, &curpos, type, obj_offset);\n \t\t\tif (*delta_chain_length == 0) {\n \t\t\t\t/* TODO: find base_sha1 as pointed by curpos */\n+\t\t\t\thashclr(base_sha1);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase OBJ_REF_DELTA:\n-- \n1.5.0.3.863.gf0989\n"}]}