I have two branches in git that are similar and I want to manually pull those changes into a third branch that is quite different. Is it possible to do a three way graphical diff of those changes?
Graphical diff of two branches is currently setup and working well with 'meld'. The following displays a graphical meld window as expected:
- git diff branch1 branch2 -- myfilename
I tried to do the following, but I get the ASCII output of 'diff --cc'.
- git diff master branch1 branch2 -- myfilename
Is that a valid syntax to get a 3-way diff? What is the proper .gitconfig settings to have it open meld? I'm using Git version 1.8.2.1.
My expectation is to have the three files opened in a meld window, then I can look at the changes between branch1/branch2 and then visually make sure the same change is in master. I just realized that I can do this by checking out each file from the three branches independently, then passing the filenames as arguments directly to meld. The checkout can be done as per this SO answer: https://stackoverflow.com/a/888623/350265