I have a repo with file
The following works for me:
git diff foo master:foo
Update: However, I should confess that I often get very confused by swapping the arguments around, to:
git diff master:foo foo
... and it doesn't work, giving the error:
fatal: Path 'foo' exists on disk, but not in 'master'.