threads / discuss / 64314

I still use git whatchanged

Subject: I still use git whatchanged

## tl;dr

4 messages between Oct 13, 2025 and Oct 14, 2025.

replies: 3people: 3as markdown or json

Kristoffer Haugsbakk· Oct 13, 2025, 22:15 UTC · re: Samer Abdallah · lore

Re: I still use git whatchanged

On Mon, Oct 13, 2025, at 23:59, Samer Abdallah wrote:
> I still use git whatchanged.
You can replace it with `git log` in this way:

• 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).

Junio C Hamano· Oct 14, 2025, 01:06 UTC · re: Kristoffer Haugsbakk · lore

Re: I still use git whatchanged

"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 11 quoted lines
> On Mon, Oct 13, 2025, at 23:59, Samer Abdallah wrote:
>> I still use git whatchanged.
>
> You can replace it with `git log` in this way:
>
> • 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).
Thanks for fielding these repeated questions.

Let's do a maintenance release Git 2.51.1 very soon with your kh/you-still-use-whatchanged-fix topic, together with other minor documentation changes and probably a hdnful of ci related fixes.

We haven't had non-security maintenance releases for quite a while, so I may need to remember and practice the procedure to cut one ;-)

Kristoffer Haugsbakk· Oct 14, 2025, 07:10 UTC · lore

Re: I still use git whatchanged

On Tue, Oct 14, 2025, at 01:01, Samer Abdallah wrote:
Show 10 quoted lines
> Hi Kristoffer,
>
> Thank you for your reply.
> I should have added that I use it to see the history of changes for the current
> file I’m editing, using the `-p` option and a file name argument, (and binding
> it to the command `:Ghist` in vim.)
>
> However, the following seems to produce the same output, as you suggested
>
> 	git log -p --no-merges —raw <filename>
Good. That’s great.

← back to recent threads