Re: Structured (ie: json) output for query commands?
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Jun 30, 2021, 18:20 UTC
- Message-ID
- <CACPiFC+F9P1DY_Dgt4+Z-U4o5WRbRduq60+Df0+FHBn6=XL2hw@mail.gmail.com>
- In-Reply-To
- <YNyxD4qAHmbluNRe@coredump.intra.peff.net>
On Wed, Jun 30, 2021 at 1:59 PM Jeff King <peff@peff.net> wrote:
> It's been discussed off-and-on over the years, but I don't think > anybody's actively working on it.
thanks!
> The trace2 facility has some json output. That's probably not helpful > for what you're doing, but it does mean we have basic json output > routines available.
Cool. I see json-writer.c; right.
> One complication we faced is that a lot of Git's data is bag-of-bytes,
Great point -- hadn't thought of that. Don't see anything in json-writer.c but we do use iconv already.
cheers,
m
-- martin.langhoff@gmail.com - ask interesting questions ~ http://linkedin.com/in/martinlanghoff - don't be distracted ~ http://github.com/martin-langhoff by shiny stuff