git difftool: how to compare zip files
<p>I am trying to compare a binary file using "git difftool". This file is also staged, but it seems that this isn't important. So I am using something like below:</p>

<pre><code>git difftool --staged /path/to/file
</code></pre>

<p>and my .gitconfig is configured like so:</p>

<pre><code>[difftool "bc3"]
    path = C:/Program Files (x86)/Beyond Compare 3/BComp.com
    cmd = BComp.com \"$LOCAL\" \"$REMOTE\" -lefttitle="Remote" -righttitle="$BASE" -lro
[diff]
    tool = bc3
[difftool]
    prompt = false
</code></pre>

<p>So when I run <code>git difftool</code> it opens Beyond Compare as expected, however, I get an error that the base binary file doesn't exist. The modified local copy is correctly loaded into the tool.</p>

<p>I have noticed this with *.bcpkg (Beyond Compare settings file, a zip file basically), and also regular *.zip files. But seems to work fine for *.exe files. What I have noticed is that <code>git difftool</code> shouldn't return unless Beyond Compare is closed, because if it returns the temp file created by it gets deleted. But in case of a zip file it always returns immediately.</p>

<p>By the way diff for all other file types works fine for me. I am on Windows 7 (64-bit) and as you can see have configured Beyond Compare 3.</p>