git_rebase_init

Initializes a rebase operation to rebase the changes in branch relative to upstream onto another branch. To begin the rebase process, call git_rebase_next. When you have finished with this object, call git_rebase_free.

Parameters

out_ libgit2_d.types.git_rebase**

Pointer to store the rebase object

repo libgit2_d.types.git_repository*

The repository to perform the rebase

branch const(libgit2_d.types.git_annotated_commit)*

The terminal commit to rebase, or null to rebase the current branch

upstream const(libgit2_d.types.git_annotated_commit)*

The commit to begin rebasing from, or null to rebase all reachable commits

onto const(libgit2_d.types.git_annotated_commit)*

The branch to rebase onto, or null to rebase onto the given upstream

opts const(.git_rebase_options)*

Options to specify how rebase is performed, or null

Return Value

Type: int

Zero on success; -1 on failure.

Meta