git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Phillip Wood <phillip.wood123@gmail.com>
Cc: Tach via GitGitGadget <gitgitgadget@gmail.com>,
	 git@vger.kernel.org, Tach <tacherasasi@gmail.com>
Subject: Re: [PATCH] status: add --json output format to git status
Date: Mon, 04 Aug 2025 06:54:28 -0700	[thread overview]
Message-ID: <xmqqikj39oq3.fsf@gitster.g> (raw)
In-Reply-To: <d62a30f6-af30-489b-ab55-4c01ed3f60c9@gmail.com> (Phillip Wood's message of "Mon, 4 Aug 2025 14:49:53 +0100")

Phillip Wood <phillip.wood123@gmail.com> writes:

> 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.

      reply	other threads:[~2025-08-04 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30  6:27 [PATCH] status: add --json output format to git status Tach via GitGitGadget
2025-07-30  9:01 ` Phillip Wood
     [not found]   ` <CA+m0rScismG8VVf8mYS=+_AjwgrgX8GNZrFD+8-0EaeCDYPgbg@mail.gmail.com>
2025-07-30 10:08     ` phillip.wood123
2025-07-30 14:58 ` Junio C Hamano
2025-08-04 13:49   ` Phillip Wood
2025-08-04 13:54     ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqikj39oq3.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=phillip.wood123@gmail.com \
    --cc=tacherasasi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).