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

Re: [PATCH] status: add --json output format to git status

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 4, 2025, 13:54 UTC
Message-ID
<xmqqikj39oq3.fsf@gitster.g>
In-Reply-To
<d62a30f6-af30-489b-ab55-4c01ed3f60c9@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 16 quoted lines
> On 30/07/2025 15:58, Junio C Hamano wrote:
>> "Tach via GitGitGadget" <gitgitgadget@gmail.com> writes:
>> 
>>> This provides a robust alternative to parsing traditional output
>>> formats, making it easier to build reliable tools and automation
>>> around Git status information.
>> The writer is obviously biased ;-) but I find this a bit hand-wavy
>> and unconvincing.
>
> I agree this isn't a very convincing reason. To me a more convincing
> reason is that virtually every scripting language comes with a way to
> parse json and base64 so if we emit json with path and ref names
> encoded as base64 there is no need for script authors to write a
> parser to parse our porcelain output. To me the fact that we have to
> encode names using base64 is a sign that json is not particularly well
> suited to the task but it is widely supported format.
Very well put.  Thanks.
Previous: Phillip WoodNext: phillip.wood123@gmail.com
Message 5 of 6 in “status: add --json output format to git status”
  1. status: add --json output format to git statusTach via GitGitGadget, Jul 30, 2025
  2. Phillip WoodJul 30, 2025
  3. Junio C HamanoJul 30, 2025
  4. Phillip WoodAug 4, 2025
  5. Junio C HamanoAug 4, 2025
  6. phillip.wood123@gmail.comJul 30, 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.