Compute a difference between the working directory and the index.
The repository.
Structure with options to influence diff or NULL for defaults.
A pointer to a git_diff_list pointer that will be allocated.