I am confused as to how SHA-1
hash isSHA-1 hashes are calculated for commitcommits, trees, and blobs. As per this articlethis article, commit hashes are calculated based on following factors:
1. The source tree of the commit (which unravels to all the subtrees and blobs) 2. The parent commit sha1 3. The author info 4. The committer info (right, those are different!) 5. The commit message
- The source tree of the commit (which unravels to all the subtrees and blobs)
- The parent commit sha1
- The author info
- The committer info (right, those are different!)
- The commit message
IsAre the same factors involved for trees
tree and blobs
blob hashes as well?
Thanks