Skip to content

Conversation

hyperupcall
Copy link
Collaborator

@hyperupcall hyperupcall commented Aug 28, 2025

This PR fixes the issue found in #1210.

Error:

'git whatchanged' is nominated for removal.
If you still use this command, please add an extra
option, '--i-still-use-this', on the command line
and let us know you still use it by sending an e-mail
to <[email protected]>.  Thanks.
fatal: refusing to run without --i-still-use-this

According to the git-whatchanged manpage:

New users are encouraged to use git-log[1] instead. The whatchanged command is essentially the same as git-log[1] but defaults to showing the raw format diff output and skipping merges.

This changes the git whatchanged invocation to the git log --raw --no-merges replacement. I tested this on a test repository and the output is the same:

$ git whatchanged
commit 7769eb195aba87248c60ca980e7f79571595118b (branch-b)
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 14:00:08 2025 -0700

    b

:000000 100644 0000000 e69de29 A        b

commit dfee73d1cbc201d048fc1accee3aefccab87e489 (branch-a)
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 13:59:19 2025 -0700

    a commit

:000000 100644 0000000 e69de29 A        a

commit 5e09db44b2136b6dd1680c771e5d2048baafe9b3
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 13:59:07 2025 -0700

    main first commit

:000000 100644 0000000 e69de29 A        main
$ git log --raw --no-merges
commit 7769eb195aba87248c60ca980e7f79571595118b (branch-b)
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 14:00:08 2025 -0700

    b

:000000 100644 0000000 e69de29 A        b

commit dfee73d1cbc201d048fc1accee3aefccab87e489 (branch-a)
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 13:59:19 2025 -0700

    a commit

:000000 100644 0000000 e69de29 A        a

commit 5e09db44b2136b6dd1680c771e5d2048baafe9b3
Author: Edwin Kofler <[email protected]>
Date:   Wed Aug 27 13:59:07 2025 -0700

    main first commit

:000000 100644 0000000 e69de29 A        main

I also tested by running git-utimes and it showed output that looks right with no errors.

Copy link
Collaborator

@spacewander spacewander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what we need! Thank you very much!

@spacewander spacewander merged commit 14586c7 into tj:main Aug 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants