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

Re: is there a reason pre-commit.sample uses "git diff-index"?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 1, 2018, 02:23 UTC
Message-ID
<xmqqh8mn9rd6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAGZ79kZ9x2OWU+qfZRckZFAdy1KFqttAZqkJwbzsvQfqUokg3A@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 5 quoted lines
> plumbing command, so the likelihood of git-log calls in scripts out
> there is high.
>
> So maybe the community should strive to be more aggressive about
> changing the porcelain interface for the better.
To me, these two paragraphs are being incoherent.

If plumbing these days lag behind "log" Porcelain and tempt script writers more towards "log", we should aggressively reject attempts to change the "log" Porcelain behaviour to keep it stable, until a suitable plumbing that scripters can rely on catches up.

Or course, aggressively improving plumbing would be a good solution to that problem as well ;-)

Previous: Stefan Beller
Message 8 of 8 in “is there a reason pre-commit.sample uses "git diff-index"?”
  1. Robert P. J. DayMay 31, 2018
  2. Duy NguyenMay 31, 2018
  3. Robert P. J. DayMay 31, 2018
  4. Duy NguyenMay 31, 2018
  5. Johannes SixtMay 31, 2018
  6. Robert P. J. DayMay 31, 2018
  7. Stefan BellerMay 31, 2018
  8. Junio C HamanoJun 1, 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.