From: Phillip Wood <phillip.wood123@gmail.com>
To: Junio C Hamano <gitster@pobox.com>,
Tach via GitGitGadget <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Tach <tacherasasi@gmail.com>
Subject: Re: [PATCH] status: add --json output format to git status
Date: Mon, 4 Aug 2025 14:49:53 +0100 [thread overview]
Message-ID: <d62a30f6-af30-489b-ab55-4c01ed3f60c9@gmail.com> (raw)
In-Reply-To: <xmqqo6t1n2sm.fsf@gitster.g>
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.
Thanks
Phillip
next prev parent reply other threads:[~2025-08-04 13:49 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 [this message]
2025-08-04 13:54 ` Junio C Hamano
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=d62a30f6-af30-489b-ab55-4c01ed3f60c9@gmail.com \
--to=phillip.wood123@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=gitster@pobox.com \
--cc=phillip.wood@dunelm.org.uk \
--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).