Create a diff between a tree and the working directory using index data
to account for staged deletes, tracked files, etc.
This emulates git diff <tree> by diffing the tree to the index and
the index to the working directory and blending the results into a
single diff that includes staged deleted, etc.
@param diff A pointer to a git_diff pointer that will be allocated.
@param repo The repository containing the tree.
@param old_tree A git_tree object to diff from, or null for empty tree.
@param opts Structure with options to influence diff or null for defaults.
Create a diff between a tree and the working directory using index data to account for staged deletes, tracked files, etc.
This emulates git diff <tree> by diffing the tree to the index and the index to the working directory and blending the results into a single diff that includes staged deleted, etc.
@param diff A pointer to a git_diff pointer that will be allocated. @param repo The repository containing the tree. @param old_tree A git_tree object to diff from, or null for empty tree. @param opts Structure with options to influence diff or null for defaults.