Compute a difference between the working directory and a tree.
This returns strictly the differences between the tree and the files contained in the working directory, regardless of the state of files in the index. There is no direct equivalent in C git.
This is NOT the same as 'git diff HEAD' or 'git diff
<SHA>'. Those
commands diff the tree, the index, and the workdir. To emulate those
functions, call git_diff_index_to_tree
and git_diff_workdir_to_index
,
then call git_diff_merge
on the results.