libgit2

git_rebase_operation_current

Version:

Gets the index of the rebase operation that is currently being applied. If the first operation has not yet been applied (because you have called init but not yet next) then this returns GIT_REBASE_NO_OPERATION.

Signature

size_t git_rebase_operation_current(git_rebase *rebase);

Parameters

In
rebase

The in-progress rebase

Returns

size_t

The index of the rebase operation currently being applied.

Versions