git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I still use git whatchanged
@ 2025-08-26 12:42 Mira Skwar
  2025-08-26 13:56 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 13+ messages in thread
From: Mira Skwar @ 2025-08-26 12:42 UTC (permalink / raw)
  To: git

Hello,

I just wanted to let you know that I still actively use the |git 
whatchanged| command, so I’d appreciate if it remains available.

Thank you for maintaining Git!

Best regards,

Mira Skwar



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-08-26 12:42 Mira Skwar
@ 2025-08-26 13:56 ` Kristoffer Haugsbakk
  0 siblings, 0 replies; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-08-26 13:56 UTC (permalink / raw)
  To: Mira Skwar, git

Hi

On Tue, Aug 26, 2025, at 14:42, Mira Skwar wrote:
> Hello,
>
> I just wanted to let you know that I still actively use the |git
> whatchanged| command, so I’d appreciate if it remains available.
>
> Thank you for maintaining Git!
>
> Best regards,
>
> Mira Skwar

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/

-- 
Kristoffer Haugsbakk

^ permalink raw reply	[flat|nested] 13+ messages in thread

* I still use git whatchanged
@ 2025-09-29  8:42 Henrik Bennin
  2025-09-29  8:58 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 13+ messages in thread
From: Henrik Bennin @ 2025-09-29  8:42 UTC (permalink / raw)
  To: git

May I ask not to remove git whatchanged because I still use it regularly?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-09-29  8:42 Henrik Bennin
@ 2025-09-29  8:58 ` Kristoffer Haugsbakk
  2025-09-29 14:16   ` Junio C Hamano
  0 siblings, 1 reply; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-09-29  8:58 UTC (permalink / raw)
  To: Henrik Bennin, git

On Mon, Sep 29, 2025, at 10:42, Henrik Bennin wrote:
> May I ask not to remove git whatchanged because I still use it regularly?

What the error message you got doesn’t say is that you can use
git-log(1) instead.  It supports everything that git-whatchanged(1)
supports.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-09-29  8:58 ` Kristoffer Haugsbakk
@ 2025-09-29 14:16   ` Junio C Hamano
  0 siblings, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2025-09-29 14:16 UTC (permalink / raw)
  To: Kristoffer Haugsbakk; +Cc: git

"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:

> On Mon, Sep 29, 2025, at 10:42, Henrik Bennin wrote:
>> May I ask not to remove git whatchanged because I still use it regularly?
>
> What the error message you got doesn’t say is that you can use
> git-log(1) instead.  It supports everything that git-whatchanged(1)
> supports.
>
> • 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.

We probably should merge kh/you-still-use-whatchanged-fix to produce
Git 2.51.1 sooner.

Thanks.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* I still use git whatchanged
@ 2025-10-13 21:59 Samer Abdallah
  2025-10-13 22:15 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 13+ messages in thread
From: Samer Abdallah @ 2025-10-13 21:59 UTC (permalink / raw)
  To: git

Hello,
I still use git whatchanged.
Thank you.
Samer 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-10-13 21:59 Samer Abdallah
@ 2025-10-13 22:15 ` Kristoffer Haugsbakk
  2025-10-14  1:06   ` Junio C Hamano
       [not found]   ` <25428D84-1B92-4398-93B2-175231A699B4@gmail.com>
  0 siblings, 2 replies; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-10-13 22:15 UTC (permalink / raw)
  To: Samer Abdallah, git

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-10-13 22:15 ` Kristoffer Haugsbakk
@ 2025-10-14  1:06   ` Junio C Hamano
       [not found]   ` <25428D84-1B92-4398-93B2-175231A699B4@gmail.com>
  1 sibling, 0 replies; 13+ messages in thread
From: Junio C Hamano @ 2025-10-14  1:06 UTC (permalink / raw)
  To: Kristoffer Haugsbakk; +Cc: git

"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:

> 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 ;-)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
       [not found]   ` <25428D84-1B92-4398-93B2-175231A699B4@gmail.com>
@ 2025-10-14  7:10     ` Kristoffer Haugsbakk
  0 siblings, 0 replies; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-10-14  7:10 UTC (permalink / raw)
  To: Samer Abdallah; +Cc: git

On Tue, Oct 14, 2025, at 01:01, Samer Abdallah wrote:
> 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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* I still use git whatchanged
@ 2025-11-15  3:16 Chia-Sheng Chang
  2025-11-15 14:55 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 13+ messages in thread
From: Chia-Sheng Chang @ 2025-11-15  3:16 UTC (permalink / raw)
  To: git; +Cc: JONATHAN.CHANG 張嘉聖

Hi Git team,

I still use git whatchanged command.

Best regards,

Chia-Sheng Chang

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-11-15  3:16 I still use git whatchanged Chia-Sheng Chang
@ 2025-11-15 14:55 ` Kristoffer Haugsbakk
  0 siblings, 0 replies; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-11-15 14:55 UTC (permalink / raw)
  To: Chia-Sheng Chang, git

On Sat, Nov 15, 2025, at 04:16, Chia-Sheng Chang wrote:
> Hi Git team,
>
> I still use git whatchanged command.
>
> Best regards,
>
> Chia-Sheng Chang

This command is being removed because it was supplanted by git-log(1) a
long while ago. Both commands use the same machinery, just with
different defaults.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* I still use git whatchanged
       [not found] <CAOFvV7kFm-A2_i2URg-2wgfTet8Dv9SMAD0Aw1AwStCJm5WOLA@mail.gmail.com>
@ 2025-12-07 10:12 ` Lee Smith
  2025-12-07 11:56   ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 13+ messages in thread
From: Lee Smith @ 2025-12-07 10:12 UTC (permalink / raw)
  To: git

I use this regularly, despite learning git after git log was added.
Remembering all the different options is hard so it's useful to have shortcuts.

If it's difficult to maintain I can understand why you might want to
remove it but I recommend adjusting the message that is shown to
suggest adding an alias instead.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: I still use git whatchanged
  2025-12-07 10:12 ` Lee Smith
@ 2025-12-07 11:56   ` Kristoffer Haugsbakk
  0 siblings, 0 replies; 13+ messages in thread
From: Kristoffer Haugsbakk @ 2025-12-07 11:56 UTC (permalink / raw)
  To: Lee Smith, git

On Sun, Dec 7, 2025, at 11:12, Lee Smith wrote:
> I use this regularly, despite learning git after git log was added.

The closest equivalent is `git log --raw --no-merges`.

> Remembering all the different options is hard so it's useful to have
> shortcuts.

The thing about this command is that the `--raw` output is pretty noisy
for interactive use. Why not something “prettier” like `--stat` or
`--name-only`?

Well, anyway. It’s not like any workflow or preference is wrong.

> If it's difficult to maintain I can understand why you might want to
> remove it but I recommend adjusting the message that is shown to
> suggest adding an alias instead.

Sure. You can use the command name as an alias on Git 2.51.2 and 2.52.0.

    git config set --global alias.whatchanged 'log --raw --no-merges'

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-12-07 11:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15  3:16 I still use git whatchanged Chia-Sheng Chang
2025-11-15 14:55 ` Kristoffer Haugsbakk
     [not found] <CAOFvV7kFm-A2_i2URg-2wgfTet8Dv9SMAD0Aw1AwStCJm5WOLA@mail.gmail.com>
2025-12-07 10:12 ` Lee Smith
2025-12-07 11:56   ` Kristoffer Haugsbakk
  -- strict thread matches above, loose matches on Subject: below --
2025-10-13 21:59 Samer Abdallah
2025-10-13 22:15 ` Kristoffer Haugsbakk
2025-10-14  1:06   ` Junio C Hamano
     [not found]   ` <25428D84-1B92-4398-93B2-175231A699B4@gmail.com>
2025-10-14  7:10     ` Kristoffer Haugsbakk
2025-09-29  8:42 Henrik Bennin
2025-09-29  8:58 ` Kristoffer Haugsbakk
2025-09-29 14:16   ` Junio C Hamano
2025-08-26 12:42 Mira Skwar
2025-08-26 13:56 ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).