[PATCH] Improve handling of "." and ".." in git-diff-*