I know this is an old question, but this is a more generic way of doing it:
git diff $(git remote show)/$(git rev-parse --abbrev-ref HEAD) HEAD