git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFE] Add JSON output to git log commands

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Aug 17, 2025, 21:09 UTC
Message-ID
<67621563-9441-4ae9-a23b-51af7d3ce666@app.fastmail.com>
In-Reply-To
<CAGW8g7mV6az3ybYf3uzHYQTGLDwc34eebZnha1EQ3Sb6B8E-fQ@mail.gmail.com>
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/
Show 8 quoted lines
> ...
> ## 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
Previous: Ron Ziroby RomeroNext: D. Ben Knoble
Message 2 of 5 in “[RFE] Add JSON output to git log commands”
  1. Ron Ziroby RomeroAug 17, 2025
  2. Kristoffer HaugsbakkAug 17, 2025
  3. D. Ben KnobleAug 17, 2025
  4. brian m. carlsonAug 17, 2025
  5. Junio C HamanoAug 17, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.