Re: [PATCH 0/2] commit: preserve commit hash on a no-op amend
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Jun 13, 2026, 16:15 UTC
- Message-ID
- <CAHwyqnXDa96+NiVanYyJb7R+XyOz6ooS+SW+b2OdKx979gUNaw@mail.gmail.com>
- In-Reply-To
- <xmqq33yqfnsa.fsf@gitster.g>
Interesting discussions! This sounds like showstopper, seems more reasonable to leave this topic for now.
I just want to share that I've been running this for years to re-trigger CI (because up until a few days ago I didn't realize that the hash did indeed change even when nothing had changed), I had the wrong mental model for commit hashes:
git commit --amend --no-edit --date="now"
Harald