Reverts the given commit against the given "our" commit, producing an
index that reflects the result of the revert.
The returned index must be freed explicitly with git_index_free.
@param out_ pointer to store the index result in
@param repo the repository that contains the given commits
@param revert_commit the commit to revert
@param our_commit the commit to revert against (eg, HEAD)
@param mainline the parent of the revert commit, if it is a merge
@param merge_options the merge options (or null for defaults)
@return zero on success, -1 on failure.
Reverts the given commit against the given "our" commit, producing an index that reflects the result of the revert.
The returned index must be freed explicitly with git_index_free.
@param out_ pointer to store the index result in @param repo the repository that contains the given commits @param revert_commit the commit to revert @param our_commit the commit to revert against (eg, HEAD) @param mainline the parent of the revert commit, if it is a merge @param merge_options the merge options (or null for defaults) @return zero on success, -1 on failure.