git_cherrypick_commit

Cherry-picks the given commit against the given "our" commit, producing an index that reflects the result of the cherry-pick.

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 cherrypick_commit the commit to cherry-pick @param our_commit the commit to cherry-pick against (eg, HEAD) @param mainline the parent of the cherrypick_commit, if it is a merge @param merge_options the merge options (or null for defaults) @return zero on success, -1 on failure.

Meta