From: "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com>
To: "Bjoern Bastian" <bjoernbastian@posteo.de>
Cc: git@vger.kernel.org
Subject: Re: Usage of git whatchanged
Date: Sun, 14 Sep 2025 19:58:26 +0200 [thread overview]
Message-ID: <8637f911-6887-41d5-b9af-cd2376376461@app.fastmail.com> (raw)
In-Reply-To: <aMbIqD4c5JY60fK1@eismeer>
On Sun, Sep 14, 2025, at 15:52, Bjoern Bastian wrote:
> Hi Kristoffer,
>
> I simply followed the invitation printed upon `git whatchanged` to
> join in giving feedback from those who frequently use the command.
>
> I did not expect a thoughtful reply, so thank you very much for it!
>
>> `git log --raw --no-merged` is the closest equivalent.
>
> Thanks for pointing this out, true (actually `--no-merges`).
Yep.
>
>> What if you made a `wh` alias?
>>
>> wh = log --raw --no-merges
>
> Sure an alias will be the next obvious workaround. With bash I need to
> include `git ` though and just type `wh` on the command line which is
> okay. To get `git wh` I could maybe modify the bash completion.
You can also make a Git alias.
git config set --global alias.wh 'log --raw --no-merges'
> One can live without, but the statement "whatchanged is not even shorter
> to type than log --raw." on https://git-scm.com/docs/git-whatchanged is
> a weak one
I have a proposal to remove it.
> that misses obvious use cases of `whatchanged`.
The thing with git-whatchanged is that it uses the same underlying
machinery as git-log. So there’s nothing that git-whatchanged can do
that git-log cannot do.
... and I guess vice versa. But historically git-log ended up as the
new-and-better replacement (according to the devs) with git-whatchanged
being kept around for people who was used to typing it.
--
Kristoffer Haugsbakk
next prev parent reply other threads:[~2025-09-14 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 12:48 Usage of git whatchanged Bjoern Bastian
2025-09-14 13:10 ` Kristoffer Haugsbakk
[not found] ` <aMbIqD4c5JY60fK1@eismeer>
2025-09-14 17:58 ` Kristoffer Haugsbakk [this message]
[not found] ` <aMcYrG3XBZc9Yu_L@eismeer>
2025-09-14 19:44 ` Kristoffer Haugsbakk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8637f911-6887-41d5-b9af-cd2376376461@app.fastmail.com \
--to=kristofferhaugsbakk@fastmail.com \
--cc=bjoernbastian@posteo.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox