Re: wishlist: make it possible to amend commit messages after push to remote
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 7, 2015, 19:38 UTC
- Message-ID
- <a0b9f82a46f2887d3ff3fb392e2e4c2c@www.dscho.org>
- In-Reply-To
- <55C4E67F.7050109@iki.fi>
Hi,
On 2015-08-07 19:10, Jarkko Hietaniemi wrote:
> But to be honest, I wasn't expecting a miracle cure. I guess the core > of my gripe is just that: how the commit message is part of the SHA.
The commit message is not "part of the SHA" but it is part of the content that defines the SHA-1.
I guess in your case, you would rather have an empty commit message and attach the real message as a commit note.
Speaking for myself, I actually like it that the entire metadata is part of the commit object, even the commit message. It makes the whole thing more reliable: one cannot claim that the commit does one thing on one day, and the next day all of a sudden claim that the commit does something completely different. Git's just really consistent the way it is.
Ciao, Johannes