From: Junio C Hamano <gitster@pobox.com>
To: "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com>
Cc: rsbecker <rsbecker@nexbridge.com>,
"'Chris Judkins-Fisher'" <chris.judkins-fisher@donorschoose.org>,
git@vger.kernel.org
Subject: Re: git whatchanged
Date: Wed, 20 Aug 2025 09:49:31 -0700 [thread overview]
Message-ID: <xmqqfrdmaqg4.fsf@gitster.g> (raw)
In-Reply-To: <37da14fb-fead-448b-b6a0-853c9fbea653@app.fastmail.com> (Kristoffer Haugsbakk's message of "Wed, 20 Aug 2025 09:52:35 +0200")
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
> On Tue, Aug 19, 2025, at 22:57, rsbecker@nexbridge.com wrote:
>> On August 19, 2025 1:51 PM, Chris Judkins-Fisher wrote:
>>>I still use git whatchanged
>>
>> I did too. However, now that git log --since has basically the same
>> functionality,
>> Perhaps setting up a git alias might do the trick for you:
>>
>> git config --global alias.whatchanged 'log'
>>
>> so
>>
>> git whatchanged --since="2 week"
>>
>> or something like that should continue to work after the command is
>> removed.
>
> You can’t alias core commands. So this will fail in the reported way
> before Git 3.0. Then from that point out it will work as an alias.
Not quite.
$ git -c alias.whatchanged='!echo bar' \
whatchanged --i-still-use-this -2 --oneline
7c10e48e81 describe: pass commit to describe_commit()
:100644 100644 72b2e1162c 04df89d56b M builtin/describe.c
8cfd4ac215 describe: handle blob traversal with no commits
:100644 100644 f7bea3c8c5 72b2e1162c M builtin/describe.c
:100755 100755 feec57bcbc 2c70cc561a M t/t6120-describe.sh
Your alias with the same name as a real command is silently ignored,
and when the real command disappears, it will start working.
Having said that, as "log --raw" is even shorter to type than
"whatchanged", these people are really better off without such an
alias.
next prev parent reply other threads:[~2025-08-20 16:49 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-19 17:51 git whatchanged Chris Judkins-Fisher
2025-08-19 17:59 ` Chris Judkins-Fisher
2025-08-19 20:57 ` rsbecker
2025-08-20 7:52 ` Kristoffer Haugsbakk
2025-08-20 14:12 ` rsbecker
2025-08-20 16:49 ` Junio C Hamano [this message]
2025-08-20 17:05 ` Chris Judkins-Fisher
2025-08-20 20:58 ` Kristoffer Haugsbakk
2025-08-20 21:10 ` Junio C Hamano
2025-08-20 21:11 ` Kristoffer Haugsbakk
-- strict thread matches above, loose matches on Subject: below --
2025-08-26 13:04 Chris Palmer
2025-08-26 13:54 ` Kristoffer Haugsbakk
2025-09-03 15:34 Jesse Hathaway
2025-09-03 19:56 ` Junio C Hamano
2025-09-03 20:43 ` Kristoffer Haugsbakk
2025-09-03 21:47 ` Junio C Hamano
2025-09-04 23:45 Michael Tourigny (TERAWE CORPORATION)
2025-09-10 20:49 Jose Jaramillo
2025-09-10 21:03 ` Kristoffer Haugsbakk
2025-09-10 21:15 ` Jose Jaramillo
2025-09-26 1:00 Neal Miller
2025-09-26 7:13 ` Kristoffer Haugsbakk
2025-09-26 15:54 ` Junio C Hamano
2025-09-28 1:12 ` Neal Miller
2025-10-02 6:48 Jiří Bašek
2025-10-02 7:12 ` Kristoffer Haugsbakk
2025-10-08 14:20 Git whatchanged Filippo Falezza
2025-10-08 14:42 ` Kristoffer Haugsbakk
2025-10-13 12:44 git whatchanged Grzegorz Koperwas
2025-10-13 13:47 ` Kristoffer Haugsbakk
2025-10-16 12:16 Julian Squires
2025-10-16 13:27 ` Kristoffer Haugsbakk
2025-10-31 8:02 Remke Schuurmans
2025-10-31 8:23 ` Kristoffer Haugsbakk
[not found] ` <c2551c49-bcb4-4518-97d3-063941d591e8@gmail.com>
2025-10-31 9:13 ` Kristoffer Haugsbakk
2025-11-07 11:40 Franz Brauße
2025-11-07 13:11 ` Kristoffer Haugsbakk
2025-11-07 14:16 ` Franz Brauße
2025-11-07 14:30 ` 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=xmqqfrdmaqg4.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=chris.judkins-fisher@donorschoose.org \
--cc=git@vger.kernel.org \
--cc=kristofferhaugsbakk@fastmail.com \
--cc=rsbecker@nexbridge.com \
/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;
as well as URLs for NNTP newsgroup(s).