From: Junio C Hamano <gitster@pobox.com>
To: Stefan Beller <sbeller@google.com>
Cc: "Martin Häcker" <mhaecker@schwarz-online.org>, git <git@vger.kernel.org>
Subject: Re: Missing git options
Date: Mon, 05 Feb 2018 11:41:50 -0800 [thread overview]
Message-ID: <xmqqzi4n9qbl.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CAGZ79kaSY=j23Nn+UH5DGJCptTow7ZpEko2DFzuuAgN2e1BxSQ@mail.gmail.com> (Stefan Beller's message of "Mon, 5 Feb 2018 10:56:17 -0800")
Stefan Beller <sbeller@google.com> writes:
> I had the impression that git-log was a pseudo-plumbing,
> despite it being explicitly marked porcelain
> as there is no good plumbing alternative.
I do not think that is a fair assessment of the situation. The more
troublesome is that depending on what exactly you want to do, you
need to use a different plumbing command and/or combinations of
them, which means people need to _learn_ Git scripting.
We recently saw that somebody used "log -1 --pretty=format:%T
$commit" when the code only needed to say "rev-parse --verify
$commit^{tree}" and got broken due to end-user configuration ;-)
next prev parent reply other threads:[~2018-02-05 19:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 9:12 Missing git options Martin Häcker
2018-02-05 18:56 ` Stefan Beller
2018-02-05 19:41 ` Junio C Hamano [this message]
2018-02-05 20:11 ` Ævar Arnfjörð Bjarmason
2018-02-06 0:43 ` brian m. carlson
2018-02-06 11:13 ` Martin Häcker
2018-02-06 11:47 ` Duy Nguyen
2018-02-06 18:27 ` Jonathan Nieder
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=xmqqzi4n9qbl.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mhaecker@schwarz-online.org \
--cc=sbeller@google.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).