Output pointer to a git_diff pointer to be allocated.
The repository containing the trees.
A git_tree object to diff from, or null for empty tree.
A git_tree object to diff to, or null for empty tree.
Structure with options to influence diff or null for defaults.
Create a diff with the difference between two tree objects.
This is equivalent to git diff <old-tree> <new-tree>
The first tree will be used for the "old_file" side of the delta and the second tree will be used for the "new_file" side of the delta. You can pass null to indicate an empty tree, although it is an error to pass null for both the old_tree and new_tree.