2

We have 2 branches

  • master
  • branchX

BranchX was created to solve some compatibility problem, where a about 10 files had to be changed.

Development on master continues and at a certain stage, I want to check what will change when we merge master into branchX.

What command should I use so that I can check that all merges have been done (except for the modifications on these 10 files)

Francis Martens
  • 3,458
  • 4
  • 24
  • 26
  • I'm re-reading your question, and the last sentence doesn't make sense to me: "What command should I use so that I can check that all merges have been done (except for the modifications on these 10 files)" Have you already merged back in and you're trying to see what *did* change? – vergenzt Jun 25 '12 at 19:06
  • Yes - this might be confusing. The 10 files will always be different from what we have on master. I just want to be sure that modifications on all other files are tracked, as if the two branches are in sync. – Francis Martens Jun 26 '12 at 04:16

2 Answers2

4
$ git diff branchX...master

Notice that it is three dots, which gets the difference between the common ancester of branchX and master, and master itself.

vergenzt
  • 9,669
  • 4
  • 40
  • 47
0

You could do by rewind to the first commit and cherry-picking all those commit that you are interested. Please, check the code on this answer

Community
  • 1
  • 1
dvdvck
  • 417
  • 4
  • 8