From: Shawn O. Pearce Date: Thu, 1 Feb 2007 20:52:22 +0000 (-0500) Subject: Cleanup prepare_packed_git_one to reuse install_packed_git. X-Git-Tag: v1.5.0-rc4~79 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=625e9421df6317a015abeb8d51c6dbb937d99880;p=git.git Cleanup prepare_packed_git_one to reuse install_packed_git. There is little point in having the linked list insertion code appearing in install_packed_git, and then again just 30 lines further down in the same file. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/sha1_file.c b/sha1_file.c index 498665e50..a42f94ac9 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -790,8 +790,7 @@ static void prepare_packed_git_one(char *objdir, int local) p = add_packed_git(path, len + namelen, local); if (!p) continue; - p->next = packed_git; - packed_git = p; + install_packed_git(p); } closedir(dir); }