After re-write of a subtree history from a repository with a script of mine, I compared it with what would do a git filter-branch ...
on that same subtree. I see that initial commits have different sha1 although I expected them to be identical (consequence of this is that all commits from both histories have different sha1).
Doing a git show --format=raw <commit-sha1>
on both commits gives exactly the same output (except for first line, which is commit <commit-sha1>
, introducing the result).
Object files are completely different, but as they are binaries, I can't figure out the root cause.
Assuming all git versions are consistent with each other, what could explain to have 2 different sha1?
Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…