Create a diff list between a tree and repository index.
This is equivalent to git diff --cached <treeish>
or if you pass
the HEAD tree, then like git diff --cached
.
The tree you pass will be used for the "old_file" side of the delta, and the index will be used for the "new_file" side of the delta.