Merge branch 'jk/fetch-pack-remove-dups-optim'
commit12d7d150743acebe9684100e98979f2d0188114e
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 May 2012 20:09:08 +0000 (29 13:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 May 2012 20:09:08 +0000 (29 13:09 -0700)
treefe72c047cf62f859983c48a2d69588084293372b
parenta7060009e1272aa43c8fb941f039cff9e9a0459b
parent3d2a33e57faa84be3ab83a80c8b75dad3e747054
Merge branch 'jk/fetch-pack-remove-dups-optim'

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

By Jeff King
* jk/fetch-pack-remove-dups-optim:
  fetch-pack: sort incoming heads list earlier
  fetch-pack: avoid quadratic loop in filter_refs
  fetch-pack: sort the list of incoming refs
  add sorting infrastructure for list refs
  fetch-pack: avoid quadratic behavior in remove_duplicates
  fetch-pack: sort incoming heads
builtin/fetch-pack.c