It's a simple helper that depending on the arguments will either use git-diff-files, git-diff-cache or git-diff-tree.