mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Martin Langhoff <>
To: Git Mailing List <>
Subject: Structured (ie: json) output for query commands?
Date: Wed, 30 Jun 2021 13:00:24 -0400	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Hi Git Gang,

I'm used to automating git by parsing stuff in Unix shell style. But
the golden days that gave us Perl are well behind us.

Before I write (unreliable, leaky, likely buggy) text parsing bits one
more time, has git grown formatted output? I'm aware of fmt and
friends, I'm thinking of something that handles escaping, nested data
structures, etc.

Something like "git shortlog --json".

Have there been discussions? Patches? (I don't spot anything in what's cooking).

 - ask interesting questions  ~
 - don't be distracted        ~
   by shiny stuff

       reply	other threads:[~2021-06-30 17:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2021-06-30 17:00 ` Martin Langhoff [this message]
2021-06-30 17:59   ` Structured (ie: json) output for query commands? Jeff King
2021-06-30 18:20     ` Martin Langhoff
2021-07-01 15:47       ` Jeff King
2021-06-30 20:19     ` brian m. carlson
2021-06-30 23:27       ` Martin Langhoff
2021-07-01 16:00       ` Jeff King
2021-07-01 21:18         ` brian m. carlson
2021-07-01 21:48           ` Jeff King
2021-07-02 13:13           ` Ævar Arnfjörð Bjarmason
2021-07-01  8:18   ` Han-Wen Nienhuys

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:

  List information:

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

  git send-email \
    --in-reply-to='' \ \ \

* 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.
Code repositories for project(s) associated with this public inbox

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 read-only IMAP folder(s) and NNTP newsgroup(s).