Re: [PATCH 16/18] count-objects: report alternates via verbose mode
- From
Jeff King <peff@peff.net>
- Date
- Oct 4, 2016, 13:56 UTC
- Message-ID
- <20161004135600.5bahz7q75mdtdstn@sigill.intra.peff.net>
- In-Reply-To
- <CA+P7+xoR-14fmzrYU_sGoTRgcfP8fe5y-+kSkoM-2=E3Jb56FQ@mail.gmail.com>
On Mon, Oct 03, 2016 at 11:46:32PM -0700, Jacob Keller wrote:
Show 18 quoted lines
> \On Mon, Oct 3, 2016 at 1:36 PM, Jeff King <peff@peff.net> wrote: > > There's no way to get the list of alternates that git > > computes internally; our tests only infer it based on which > > objects are available. In addition to testing, knowing this > > list may be helpful for somebody debugging their alternates > > setup. > > > > Let's add it to the "count-objects -v" output. We could give > > it a separate flag, but there's not really any need. > > "count-objects -v" is already a debugging catch-all for the > > object database, its output is easily extensible to new data > > items, and printing the alternates is not expensive (we > > already had to find them to count the objects). > > > > Makes sense. Unless there's a compelling reason you'd want to print > out these alternates *without* anything else from -v, but you can just > use grep like the test does so this seems fine to me.
Yeah. I could definitely be persuaded otherwise, but I just couldn't see these being used for anything useful beyond debugging.
-Peff