git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Using command nominated for removal: whatchanged
@ 2025-09-10 13:38 Chirayu Desai
  2025-09-10 13:53 ` Kristoffer Haugsbakk
  2025-09-10 20:08 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Chirayu Desai @ 2025-09-10 13:38 UTC (permalink / raw)
  To: git

Hello,

Hope this email finds you well!

'git whatchanged' is nominated for removal.

I still use this command. I usually run 'git whatchanged -1' and 'git whatchanged <commit>' to quickly see what files have changed in a particular commit.

I guess there might be some alias I could setup to achieve the same - it's more that this command has become a muscle memory at this point so I kept hitting the removal message, and here I am.

Thanks!

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

* Re: Using command nominated for removal: whatchanged
  2025-09-10 13:38 Using command nominated for removal: whatchanged Chirayu Desai
@ 2025-09-10 13:53 ` Kristoffer Haugsbakk
  2025-09-10 20:08 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Kristoffer Haugsbakk @ 2025-09-10 13:53 UTC (permalink / raw)
  To: Chirayu Desai, git

Hi Chirayu

Hi

On Wed, Sep 10, 2025, at 15:38, Chirayu Desai wrote:
> Hello,
>
> Hope this email finds you well!
>
> 'git whatchanged' is nominated for removal.
>
> I still use this command. I usually run 'git whatchanged -1' and 'git
> whatchanged <commit>' to quickly see what files have changed in a
> particular commit.

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 usually run 'git whatchanged -1'

`git show --raw` should give a similar output.  Although `git show`
(with diff) or `git show --stat` are nicer in my opinion.

> I guess there might be some alias I could setup to achieve the same -
> it's more that this command has become a muscle memory at this point so
> I kept hitting the removal message, and here I am.

You can set up an alias, although not the exact alias `whatchanged` since
core commands cannot be aliased (or shadowed I guess).

An alias like `watchanged` would work.

-- 
Kristoffer Haugsbakk

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

* Re: Using command nominated for removal: whatchanged
  2025-09-10 13:38 Using command nominated for removal: whatchanged Chirayu Desai
  2025-09-10 13:53 ` Kristoffer Haugsbakk
@ 2025-09-10 20:08 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2025-09-10 20:08 UTC (permalink / raw)
  To: Chirayu Desai; +Cc: git

"Chirayu Desai" <git@cdesai.in> writes:

> Hello,
>
> Hope this email finds you well!
>
> 'git whatchanged' is nominated for removal.
>
> I still use this command. I usually run 'git whatchanged -1' and 'git whatchanged <commit>' to quickly see what files have changed in a particular commit.
>
> I guess there might be some alias I could setup to achieve the same - it's more that this command has become a muscle memory at this point so I kept hitting the removal message, and here I am.

Thanks for letting us know.  If you still use it, you can retrain
your fingers to use "git log" with some options instead.  The most
literal translation would be "git log --raw --no-merges", but there
are MUCH BETTER options invented since "whatchanged" was written.

If the reason you are interested in is to learn the names of the
files, then "git log --names-only" gives a lot cleaner output
without hexadecimal gibberish that has not much use for human
readers, for examplle.

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

end of thread, other threads:[~2025-09-10 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10 13:38 Using command nominated for removal: whatchanged Chirayu Desai
2025-09-10 13:53 ` Kristoffer Haugsbakk
2025-09-10 20:08 ` Junio C Hamano

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