From: Jeff King Date: Tue, 08 May 2018 14:44:43 GMT Subject: Re: [PATCH v3 06/12] get_short_oid: sort ambiguous objects by type, then SHA-1 Message-ID: <20180508144443.GC30183@sigill.intra.peff.net> In-Reply-To: <20180501184016.15061-7-avarab@gmail.com> On Tue, May 01, 2018 at 06:40:10PM +0000, Ævar Arnfjörð Bjarmason wrote: > Change the output emitted when an ambiguous object is encountered so > that we show tags first, then commits, followed by trees, and finally > blobs. Within each type we show objects in hashcmp() order. Before > this change the objects were only ordered by hashcmp(). > > The reason for doing this is that the output looks better as a result, > e.g. the v2.17.0 tag before this change on "git show e8f2" would > display: FWIW, I agree that this gives a big improvement to readability. -Peff