fetch-pack: sort incoming heads list earlier
commit3d2a33e57faa84be3ab83a80c8b75dad3e747054
authorJeff King <peff@peff.net>
Thu, 24 May 2012 06:04:51 +0000 (24 02:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 May 2012 17:02:37 +0000 (24 10:02 -0700)
tree7b008bac735085acddc1c0cf13f45c74497b4a8c
parenta0de28805dceaca86a6f7bedfd3e8c227b781d9d
fetch-pack: sort incoming heads list earlier

Commit 4435968 started sorting heads fed to fetch-pack so
that later commits could use more optimized algorithms;
commit 7db8d53 switched the remove_duplicates function to
such an algorithm.

Of course, the sorting is more effective if you do it
_before_ the algorithm in question.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch-pack.c