Skip to content
Browse files

Merge branch 'jk/fetch-pack-remove-dups-optim' into next

The way "fetch-pack" that is given multiple references to fetch tried to
remove duplicates was very inefficient.

Will merge to master.

By Jeff King
* jk/fetch-pack-remove-dups-optim:
  fetch-pack: sort incoming heads list earlier
  • Loading branch information...
2 parents 7148763 + 3d2a33e commit cf56fe6187aa637488186f9ffc4c766aee104e92 @gitster committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 builtin/fetch-pack.c
View
2 builtin/fetch-pack.c
@@ -1079,8 +1079,8 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
}
if (heads && nr_heads) {
- nr_heads = remove_duplicates(nr_heads, heads);
qsort(heads, nr_heads, sizeof(*heads), compare_heads);
+ nr_heads = remove_duplicates(nr_heads, heads);
}
if (!ref) {

0 comments on commit cf56fe6

Please sign in to comment.
Something went wrong with that request. Please try again.