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

Re: I use whatchanged!

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 25, 2025, 15:59 UTC
Message-ID
<xmqq5xebtmsl.fsf@gitster.g>
In-Reply-To
<20250825085428.GA367101@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> The culprit is the revs.always_show_header flag, which git-log sets but
> git-whatchanged does not. I don't think there is a way to influence it
> with an option, though. You can simplify history by giving a pathspec,
> but that can have broader changes (e.g., it may also simplify away side
> branches).
>
> I don't know if that's an option that should be added before declaring
> whatchanged dead. Arguably the git-log behavior is much more reasonable,
> but I don't know if anybody cares about being byte-for-byte identical to
> whatchanged behavior.

"git log" behaviour of showing the presence of empty commits is reasonable in the context of "showing the log". "git whatchanged" bbehaviour of reporting which commits changed things (either in the whole tree, or limited by pathspec) and omitting is reasonable in the context of "showing what commit changed these things".

I do not think byte-for-byte identical output is a requirement, but I of course am biased ;-)

Previous: Jeff KingNext: Kristoffer Haugsbakk
Message 6 of 7 in “I use whatchanged!”
  1. Dan AllenAug 20, 2025
  2. Kristoffer HaugsbakkAug 20, 2025
  3. Junio C HamanoAug 20, 2025
  4. Ben ZaninAug 20, 2025
  5. Jeff KingAug 25, 2025
  6. Junio C HamanoAug 25, 2025
  7. Kristoffer HaugsbakkAug 28, 2025

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.