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

Re: git whatchanged

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Aug 26, 2025, 13:54 UTC
Message-ID
<04d5ce4f-53aa-465a-aeb1-bef84532e424@app.fastmail.com>
In-Reply-To
<1011073f-9930-4360-a42f-71eb7421fe3f@chrispalmer.uk>
Hi
On Tue, Aug 26, 2025, at 15:04, Chris Palmer wrote:
Show 6 quoted lines
> We still use whatchanged frequently. Sometimes to check the later
> commits, and sometimes as an easy way of searching for changes to a
> specific file.
>
> I'm not clear whether you are proposing removing the functionality
> altogether, or whether there is a new/better way to do it.
You can replace it with `git log`:

• Given: `git whatchanged <opts>` • Replace with: `git log <opts> --no-merges --raw`

... with some minor output caveats about empty commits (commits with no changes).[1]

🔗 1: https://lore.kernel.org/git/20250825085428.GA367101@coredump.intra.peff.net/
> I'm not clear whether you are proposing removing the functionality
> altogether,

Yes, the command is slated for removal in Git 3.0. They have not decided when that version will be released.

(although the functionality is still covered by git-log(1))
See this doc (from 2.51.0): https://github.com/git/git/tree/c44beea485f0f2feaf460e2ac87fdd5608d63cf0/Documentation/BreakingChanges.adoc
-- 
Kristoffer Haugsbakk
Previous: Chris Palmer
Message 2 of 2 in “git whatchanged”
  1. Chris PalmerAug 26, 2025
  2. Kristoffer HaugsbakkAug 26, 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.