mirror of
https://github.com/git/git.git
synced 2026-02-19 14:21:50 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user