Skip to content

Commit

Permalink
Cleanup prepare_packed_git_one to reuse install_packed_git.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Feb 2, 2007
1 parent 859607d commit 625e942
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sha1_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 625e942

Please sign in to comment.