]> git.ipfire.org Git - thirdparty/git.git/commit
whatchanged: require --i-still-use-this
authorJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2025 19:03:09 +0000 (12:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2025 22:29:37 +0000 (15:29 -0700)
commit731a2c7ddae9226d384163efc77090003be63a13
treef9563cc366cdcc9ac6fe4b24b124787763cf0bab
parentab4d1880e19c2229055334f0fe309b89e91f27a9
whatchanged: require --i-still-use-this

The documentation of "git whatchanged" is pretty explicit that the
command was retained for historical reasons to help those whose fingers
cannot be retrained.  Let's see if they still are finding it hard to
type "git log --raw" instead of "git whatchanged" by marking the
command as "nominated for removal", and require "--i-still-use-this"
on the command line.  Adjust the tests so that the option is passed
when we invoke the command.  In addition, we test that the command
fails when "--i-still-use-this" is not given.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t4013-diff-various.sh
t/t4202-log.sh