git - Why are the commit hash's different in the following toy repo? -
it same file in commits, in different branches. , understanding git not use branch name calculate hash.
there's not quite enough shown sure, presumably it's because made commits @ different times, or slight changes author and/or committer names, and/or different commit messages.
the tree hashes should same, if files identical. commit hash sha-1 of commit contents, though, , commit contents this:
tree 2d6f17582c301f3c19f64afbe70b629fcc68505b parent 3dc5ce0a5686ede82b7ee20c895372f61a74f839 author junio c hamano <gitster@pobox.com> 1433188076 -0700 committer junio c hamano <gitster@pobox.com> 1433188076 -0700 sixth batch 2.5 cycle signed-off-by: junio c hamano <gitster@pobox.com> (this current master branch git, of time ran git fetch). note author , committer time stamps.

Comments
Post a Comment