@matheusbsbs / matheus-bagliano / commits / 625e9421df
Fork 0

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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Shawn O. Pearce committed Feb 1, 2007 at 15:52 UTC 625e9421df6317a015abeb8d51c6dbb937d99880
1 file changed +1 -2
sha1_file.c
+1 -2
@@ -790,8 +790,7 @@ static void prepare_packed_git_one(char *objdir, int local)
790 p = add_packed_git(path, len + namelen, local);
791 if (!p)
792 continue;
793 - p->next = packed_git;
794 - packed_git = p;
793 + install_packed_git(p);
794 }
795 closedir(dir);
796 }