Re: Git whatchanged
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Oct 8, 2025, 14:42 UTC
- Message-ID
- <d1273222-df3d-4e1d-ab20-1a49f1a692bd@app.fastmail.com>
- In-Reply-To
- <GV2P251MB09937AD11689D3148CD342D8F8E1A@GV2P251MB0993.EURP251.PROD.OUTLOOK.COM>
Good evening
On Wed, Oct 8, 2025, at 16:20, Filippo Falezza wrote:
> I am reaching out as I am still using the whatchanged option in git, > which is very useful for my coding and handling merges. > Please keep this option and do not break userspace.
This command is being removed because git-log(1) supplanted it over 12 years ago. Both commands use the same machinery, just with different defaults.
You can replace the command with `git log` thus:
• Given: `git whatchanged <opts>` • Replace with: `git log <opts> --no-merges --raw`
Additionally for the sake of readability, you might have more use for `--stat` or `--name-only` rather than `--raw` if you are only reading the output (not feeding the output to another program).