Reputation: 2180
Here is the repro repo: https://github.com/sathishsoundharajan/git-diff
Steps
git cherry-pick 593da755a9ea90b6f55bcc6d184f249218bf4170
. Cherry-picked without conflicts but the commit_id changed to https://github.com/sathishsoundharajan/git-diff/commit/e58427c82322d6a3ec933741887f5b8312981e11Questions:
Upvotes: 0
Views: 84
Reputation: 30212
1 because history is different so the IDs can't be the same for security/cryptographic reasons.
2 no, related ro #1 ... if you got the same ID, that would mean you found a collision (or you are producing the exact same objects, like what git svn
does)... theoretically possible but....
3 because in PR/MR, you see differences not between the tips of the two branches but since the feature branch is started, say (what you get if you try git diff
with ...
instead of ..
). If you saw the differences between the 2 tlps of the branches, code review would be hell because you would see changes from the MR/PR itself plus the changes introduced in the target branch since the MR/PR branch was started (not to name that the changes will change over time as more stuff is merged unto the target branch). Who would want to work like that?
4 like the diff betwern the 2 branch tips? Try with ..
instead of ...
. Now, on github? They might provide the option if they considered it necessay but I don't think you will find a lot of customers would be interested.... and then it's about them, not about git.
5 what do you mean?
Upvotes: 1