In git, how do I verify that a merge upstream master
commit does not contain any additional diffs? Say I want to verify that the person didn't do anything 'sneaky' besides actually merge the changes from the upstream master branch.
I want to verify that the only diffs come from the other commits they made; that they did not perform an 'evil merge'.
Is there a way to verify that no additional changes were made during the merge step?
Or better yet: show me the potential 'evil merge' diffs so I can see for myself what extra work might have been done?
Example scenario:
P1---P2 P3---P4---P5---P6
/ \ / / \
A---B---C---D--E--------F---------G master
\ /
C1---C2
P1..P2: First pull request
C1..C2: My working branch
P3..P4: More work done inbetween
P5: The commit that merges in master branch changes
P6: More regular work
- Someone sends a pull request to my repo (
P1..P2
) - The pull request is fantastic, and I merge it (
E
) - I do some further development (
C1..C2
), integrate my own branch to master (F
), and publish - The other person has done more work in the meantime (
P3..P4
) - They merge upstream changes into their local repo (
P5
), makes more changes (P6
), and send a second pull request - Can I verify that they didn't sneak in any extra diffs during the merge (
P5
)?