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

git diff-tree do not honor diff.orderfile config

From
TMTiago de Bem Natel de Moura <t.nateldemoura@gmail.com>
Date
Jul 5, 2024, 10:28 UTC
Message-ID
<CAJFVNCfz_-Dvd0ctc4w-2jsthyPFxy=HOutj=3PbNnQ-Gsz84A@mail.gmail.com>

What did you do before the bug happened? (Steps to reproduce your issue) The config `diff.orderfile` is not being honored in the `git diff-tree` command as stated by the documentation.

What did you expect to happen? (Expected behavior) The output ordered by the pattern file.

What happened instead? (Actual behavior) Output has normal order.

What's different between what you expected and what actually happened?
The order.
Anything else you want to add:

The complete command that I'm running is: git diff-tree -r --relative --name-only HEAD main

if I provide -O ~/ordefile it works but if I add it to my config it does not.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.44.0 cpu: arm64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 arm64 compiler info: clang: 15.0.0 (clang-1500.1.0.2.5) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks]
Next: Taylor Blau
Message 1 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.