I am trying to use p4merge with git but I am getting:
Error starting p4merge: "path/myFile" is (or points to) an invalid file (this lists the BASE, LOCAL, REMOTE, and standard version of the file).
Git tells me about the conflict then it asks if I wanna start the mergetool configured (p4merge) and then I get the error above.
Additional note: it happens with any file!
Any clue about what this is and how to fix it?
You will see here my config for DiffMerge or KDiff3.
Based on that, I would recommend for p4merge:
and
merge.sh
being a wrapper (copied in a directory referenced by yourPATH
environment variable), able to take into account the case where noBASE
exists.(when a file is created in two different branches being then merged, there would be no common ancestor for that file)
You may note:
PWD
in the config of the mergemerge
" as name of the merge.tool name (since the actual tool is called in themerge.sh
script, where you can switch between any number of merge tool you want)$base
,$alocal
,$remote
,$result
within the scriptJust tested it (it turns out, you can download and install only p4merge -- section Client/Visual Merge Tool --, even if you do not have any other P4 product installed).
With the settings describe above, MSysGit1.6.3, DOS session or Git bash session:
It just worksTM.
Update msysgit 1.7.x
Benjol mentions in the comments:
This worked for me using msysGit on windows 7:
Not sure why but the quoting screwed things up for me.