Use the new git-rev-parse "--[no-]flags" in "git diff".