git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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 ;-)

Previous: Stefan BellerNext: Ævar Arnfjörð Bjarmason
Message 3 of 8 in “Missing git options”
  1. Martin HäckerFeb 5, 2018
  2. Stefan BellerFeb 5, 2018
  3. Junio C HamanoFeb 5, 2018
  4. Ævar Arnfjörð BjarmasonFeb 5, 2018
  5. brian m. carlsonFeb 6, 2018
  6. Martin HäckerFeb 6, 2018
  7. Duy NguyenFeb 6, 2018
  8. Jonathan NiederFeb 6, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.