From: Kristoffer Haugsbakk Date: Sun, 17 Aug 2025 21:09:00 GMT Subject: Re: [RFE] Add JSON output to git log commands Message-ID: <67621563-9441-4ae9-a23b-51af7d3ce666@app.fastmail.com> In-Reply-To: On Sun, Aug 17, 2025, at 22:17, Ron Ziroby Romero wrote: > I would like to add JSON output to the git log command. Previously: https://lore.kernel.org/git/CAGW8g7=21pPAgCixjpayEvmw_ns-hcB4e59NP476TKtCRXHPXQ@mail.gmail.com/ > ... > ## Design outline > > * Add a `PRETTY_JSON` constant. > * Create a pretty-json.c file to output JSON log information > * Modify pretty.c to call pretty-json to output JSON when the flag is set. > * Use existing utility functions written in the existing source to > output the JSON. I’m guessing that the existing `json-writer.h` is relevant. -- Kristoffer Haugsbakk