Create a diff with the difference between two index objects.
The first index will be used for the "old_file" side of the delta and the second index will be used for the "new_file" side of the delta.
Output pointer to a git_diff pointer to be allocated.
The repository containing the indexes.
A git_index object to diff from.
A git_index object to diff to.
Structure with options to influence diff or NULL for defaults.
0 or an error code.