Re: Missing git options
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 5, 2018, 19:41 UTC
- Message-ID
- <xmqqzi4n9qbl.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAGZ79kaSY=j23Nn+UH5DGJCptTow7ZpEko2DFzuuAgN2e1BxSQ@mail.gmail.com>
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 ;-)