From: Jeff Hostetler <git@jeffhostetler.com>
To: Ramsay Jones <ramsay@ramsayjones.plus.com>,
Junio C Hamano <gitster@pobox.com>
Cc: Wink Saville <wink@saville.com>,
git@vger.kernel.org, jeffhost@microsoft.com
Subject: Re: [RFC PATCH 1/1] json-writer: incorrect format specifier
Date: Tue, 27 Mar 2018 06:24:35 -0400 [thread overview]
Message-ID: <d3fc60d1-2d8f-ec8c-cafe-f96547eff9ca@jeffhostetler.com> (raw)
In-Reply-To: <9512a1eb-2b9d-fda5-f2a5-c9f59dff972c@ramsayjones.plus.com>
On 3/26/2018 11:26 PM, Ramsay Jones wrote:
> On 26/03/18 18:04, Junio C Hamano wrote:
>> Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
[...]
> I must confess to not having given any thought to the wider
> implications of the code. I don't really know what this code
> is going to be used for. [Although I did shudder when I read
> some mention of a 'universal interchange format' - I still
> have nightmares about XML :-D ]
[...]
My current goals are to add telemetry in a friendly way and
have events written in JSON to some audit destination.
Something like:
{ "argv":["./git","status"],
"pid":84941,
"exit-code":0,
"elapsed-time":0.011121,
"version":"2.16.2.5.g71445db.dirty",
... }
Later, we could add a JSON formatter to a command like "status"
and then do things like:
$ git status --json | python '... json.load ...'
and eliminate the need to write custom parsers for normal
or porcelain formats. There are other commands that could
be similarly adapted and save callers a lot of screen-scraping
code. But that is later.
Thanks,
Jeff
next prev parent reply other threads:[~2018-03-27 10:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-24 5:37 [RFC PATCH 0/1] json-writer: incorrect format specifier Wink Saville
2018-03-24 5:37 ` [RFC PATCH 1/1] " Wink Saville
2018-03-24 11:11 ` Jeff Hostetler
2018-03-24 15:14 ` Ramsay Jones
2018-03-24 16:07 ` Ramsay Jones
2018-03-26 17:04 ` Junio C Hamano
2018-03-26 17:39 ` Jeff Hostetler
2018-03-27 3:26 ` Ramsay Jones
2018-03-27 10:24 ` Jeff Hostetler [this message]
2018-03-24 18:38 ` [RFC PATCH 0/1] json-writer: add cast to uintmax_t Wink Saville
2018-03-24 18:38 ` [RFC PATCH v2 1/1] " Wink Saville
2018-03-26 17:36 ` Jeff Hostetler
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=d3fc60d1-2d8f-ec8c-cafe-f96547eff9ca@jeffhostetler.com \
--to=git@jeffhostetler.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jeffhost@microsoft.com \
--cc=ramsay@ramsayjones.plus.com \
--cc=wink@saville.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).