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.
@param diff Output pointer to a git_diff pointer to be allocated.
@param repo The repository containing the trees.
@param old_tree A git_tree object to diff from, or null for empty tree.
@param new_tree A git_tree object to diff to, or null for empty tree.
@param opts 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.
@param diff Output pointer to a git_diff pointer to be allocated. @param repo The repository containing the trees. @param old_tree A git_tree object to diff from, or null for empty tree. @param new_tree A git_tree object to diff to, or null for empty tree. @param opts Structure with options to influence diff or null for defaults.