From: Jonathan Nieder <jrnieder@xxxxxxxxx> Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx> --- packfile.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packfile.c b/packfile.c index 05b4505b2c..d1533ec948 100644 --- a/packfile.c +++ b/packfile.c @@ -857,11 +857,10 @@ static int sort_pack(const void *a_, const void *b_) return -1; } -#define rearrange_packed_git(r) rearrange_packed_git_##r() -static void rearrange_packed_git_the_repository(void) +static void rearrange_packed_git(struct repository *r) { - the_repository->objects.packed_git = llist_mergesort( - the_repository->objects.packed_git, get_next_packed_git, + r->objects.packed_git = llist_mergesort( + r->objects.packed_git, get_next_packed_git, set_next_packed_git, sort_pack); } -- 2.15.1.433.g936d1b9894.dirty