Is there a git (preferably plumbing) command to check if a file has changed between two commits?
I can check this with a little grep but this does not feel like the cleanest solution:
git diff --name-only HEAD HEAD~4 -- filename | grep -q filename
EDIT : I want the return code to reflect whether the file has changed or not.