libgit2

git_rebase_abort

Version:

Aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.

Signature

int git_rebase_abort(git_rebase *rebase);

Parameters

In
rebase

The rebase that is in-progress

Returns

int

Zero on success; GIT_ENOTFOUND if a rebase is not in progress, -1 on other errors.

Versions