4 ms·
> Ammending changes the hash of the commit Not necessarily. Fossil's `amend` command works by adding additional information to the repo that the web UI and com
by wyoung2 7y ago
> Ammending changes the hash of the commit
Not necessarily. Fossil's `amend` command works by adding additional information to the repo that the web UI and commands like `fossil info` look at when building up information intended for direct consumption by the user.
In this way, you can edit commit messages, rename branches/tags, add/remove tags, etc. to historical check-ins without breaking the blockchain / Merkle tree of commits.
This allows Fossil to keep all of the historical information about what happened to a given file, commit, ticket, etc. while still allowing a coherent presentation of the current state of affairs to the user.