Advertisement
Guest User

Untitled

a guest
Jul 7th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. B-A1-A2-A
  2. \C1-C2-C
  3.  
  4. Files touched in both branches A and C since A and C diverged from B. This means all files touched by A1 & A2 compared to the files touched by C1 & C2
  5.  
  6. # to find the common ancestor commit of branch A & C:
  7. B = git merge-base A C
  8.  
  9. # to find the common files touched by branches A & C since they diverged from B:
  10.  
  11. comm -12 $(git diff --name-only B...A | sort) $(git diff --name-only B...C | sort)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement