This question is very similar to: How do I tell git to always select my local version for conflicted merges on a specific file? with an important difference.
I have followed the excellent steps in VonC's answer to the above question and everything almost works. However, in my situation I only have changes to the incoming version of the file (not both the local and incoming version).
No merge is really necessary since only one branch has changes. In this case it appears that git does not bother to run the merge driver and simply overwrites the local version with the incoming one, which is exactly what my custom merge driver was supposed to prevent.
Is there any way to essentially tell git that it should never change a particular file during a merge (even under the circumstances described above where VonC's answer appears not to quite work)?