Re: [PATCH v3 00/14] Clean up how fetch_pack() handles the heads list
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 9, 2012, 18:15 UTC
- Message-ID
- <7vhar7qd07.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120909130532.GA27754@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 16 quoted lines
> On Sun, Sep 09, 2012 at 03:20:18AM -0700, Junio C Hamano wrote: > >> Michael Haggerty <mhagger@alum.mit.edu> writes: >> >> > This patch series depends on the "Add some string_list-related >> > functions" series that I just submitted. >> >> Makes sense. The only worry (without reading the series first) I >> have is that the use of string list may make the responsiblity of >> sorting the list fuzzier. I am guessing that we never sorted the >> refs we asked to fetch (so that FETCH_HEAD comes out in an expected >> order), so use of unsorted string list would be perfectly fine. > > I haven't read the series yet, but both the list of heads from the user > and the list of heads from the remote should have been sorted by 4435968 > and 9e8e704f, respectively.
OK. As long as the sort order matches the order string-list internally uses for its bisection search, it won't be a problem, then.
Thanks.