Method
GgitRepositoryrebase_init
Declaration [src]
GgitRebase*
ggit_repository_rebase_init (
GgitRepository* repository,
GgitAnnotatedCommit* branch,
GgitAnnotatedCommit* upstream,
GgitAnnotatedCommit* onto,
GgitRebaseOptions* options,
GError** error
)
Description [src]
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 g_object_unref().
Parameters
branch-
Type:
GgitAnnotatedCommitThe terminal commit to rebase, or
NULLto rebase the current branch.The argument can be NULL.The data is owned by the caller of the function. upstream-
Type:
GgitAnnotatedCommitThe commit to begin rebasing from, or
NULLto rebase all reachable commits.The argument can be NULL.The data is owned by the caller of the function. onto-
Type:
GgitAnnotatedCommitThe branch to rebase onto, or
NULLto rebase onto the given upstream.The argument can be NULL.The data is owned by the caller of the function. options-
Type:
GgitRebaseOptionsA
GgitRebaseOptionsto specify how rebase is performed, orNULL.The data is owned by the caller of the function. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: GgitRebase
A newly allocated GgitRebase.
| The caller of the method takes ownership of the data, and is responsible for freeing it. |
The return value can be NULL. |