{"thread":{"id":"6612","subject":"[PATCH 1/4] Cleanup prepare_packed_git_one to reuse install_packed_git.","startedAt":"2007-02-01T20:52:22Z","lastAt":"2007-02-01T20:52:22Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"33278","messageId":"20070201205222.GA19009@spearce.org","threadId":"6612","inReplyTo":null,"subject":"[PATCH 1/4] Cleanup prepare_packed_git_one to reuse install_packed_git.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-02-01T20:52:22Z","receivedAt":"2007-02-01T20:52:22Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"There is little point in having the linked list insertion code\nappearing in install_packed_git, and then again just 30 lines\nfurther down in the same file.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n sha1_file.c |    3 +--\n 1 files changed, 1 insertions(+), 2 deletions(-)\n\ndiff --git a/sha1_file.c b/sha1_file.c\nindex 498665e..a42f94a 100644\n--- a/sha1_file.c\n+++ b/sha1_file.c\n@@ -790,8 +790,7 @@ static void prepare_packed_git_one(char *objdir, int local)\n \t\tp = add_packed_git(path, len + namelen, local);\n \t\tif (!p)\n \t\t\tcontinue;\n-\t\tp->next = packed_git;\n-\t\tpacked_git = p;\n+\t\tinstall_packed_git(p);\n \t}\n \tclosedir(dir);\n }\n-- \n1.5.0.rc3.1.ge4b0e\n"}]}