Re:Shit – An implementation of Git using POSIX shell
by ilammy on Wednesday February 12, 2020 @04:09PM
(#22312839)
No, it’s not. Commit hashes are exactly what it says on the tin: hash sums of commit objects, which are basically text files that include hash sums of tree objects (directory tree state), hash sums of parent commits, your commit message and other metadata. You can see it with "git cat-file":
And compute the commit hash manually to verify that:
Git prefixes object content with object type ("commit" in case of commits), its size in bytes (textual, decimal), terminated by a null byte. And hashes all of that get the commit hash.
[ Parent
| on HN ]
There are no comments on this comment yet.