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

Re: git diff-tree do not honor diff.orderfile config

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 6, 2024, 22:10 UTC
Message-ID
<xmqqy16ematj.fsf@gitster.g>
In-Reply-To
<Zohf7LzaRHaG9vX6@nand.local>
Taylor Blau <me@ttaylorr.com> writes:
> So I suppose the question is whether supporting -O from diff-tree is
> sensible. If it is, then reading the diff.orderFile configuration option
> is a no-brainer. But if it isn't, then we should probably not make a bad
> situation worse by adding support for it.

If plumbing commands paid attention to the end-user configuration, they will not serve as a reliable building blocks for script writers. The would instead change their behaviour in a way not expected by script writers.

On the other hand, we do want to give script writers an option to utilize power of the underlying machinery. If they want to specify a particular order of paths in the output, they are welcome to feed an orderfile via the command line and that is why we have an option.

Supporting "-O <orderfile>" and ignoring "diff.orderfile" are both very sensible thing for the plumbing commands and it is the result of deliberate design.

Thanks.
Previous: Jeff KingNext: Tiago de Bem Natel de Moura
Message 4 of 6 in “git diff-tree do not honor diff.orderfile config”
  1. Tiago de Bem Natel de MouraJul 5, 2024
  2. Taylor BlauJul 5, 2024
  3. Jeff KingJul 6, 2024
  4. Junio C HamanoJul 6, 2024
  5. Tiago de Bem Natel de MouraJul 8, 2024
  6. Junio C HamanoJul 6, 2024

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.