libgit2

git_rebase_inmemory_index

Version:

Gets the index produced by the last operation, which is the result of git_rebase_next and which will be committed by the next invocation of git_rebase_commit. This is useful for resolving conflicts in an in-memory rebase before committing them. You must call git_index_free when you are finished with this.

This is only applicable for in-memory rebases; for rebases within a working directory, the changes were applied to the repository's index.

Signature

int git_rebase_inmemory_index(git_index **index, git_rebase *rebase);

Parameters

In
index

The result index of the last operation.

In
rebase

The in-progress rebase.

Returns

int

0 or an error code

Versions