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, const git_signature *signature);

Parameters

In
rebase

The rebase that is in-progress

In
signature

The identity that is aborting the rebase

Returns

int

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

Versions