libgit2_d.rebase

Undocumented in source.

Members

Enums

GIT_REBASE_OPERATION_PICK
anonymousenum GIT_REBASE_OPERATION_PICK
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_rebase_operation_t
enum git_rebase_operation_t

Type of rebase operation in-progress after calling git_rebase_next.

Functions

GIT_REBASE_OPTIONS_INIT
GIT_REBASE_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_rebase_abort
int git_rebase_abort(libgit2_d.types.git_rebase* rebase)

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

git_rebase_commit
int git_rebase_commit(libgit2_d.oid.git_oid* id, libgit2_d.types.git_rebase* rebase, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(char)* message_encoding, const(char)* message)

Commits the current patch. You must have resolved any conflicts that were introduced during the patch application from the git_rebase_next invocation.

git_rebase_finish
int git_rebase_finish(libgit2_d.types.git_rebase* rebase, const(libgit2_d.types.git_signature)* signature)

Finishes a rebase that is currently in progress once all patches have been applied.

git_rebase_free
void git_rebase_free(libgit2_d.types.git_rebase* rebase)

Frees the git_rebase object.

git_rebase_init
int git_rebase_init(libgit2_d.types.git_rebase** out_, libgit2_d.types.git_repository* repo, const(libgit2_d.types.git_annotated_commit)* branch, const(libgit2_d.types.git_annotated_commit)* upstream, const(libgit2_d.types.git_annotated_commit)* onto, const(.git_rebase_options)* opts)

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.

git_rebase_inmemory_index
int git_rebase_inmemory_index(libgit2_d.types.git_index** index, libgit2_d.types.git_rebase* rebase)

Gets the index produced by the last operation, which is the result of git_rebase_next and which will be committed by the next invocation of git_rebase_commit. This is useful for resolving conflicts in an in-memory rebase before committing them. You must call git_index_free when you are finished with this.

git_rebase_next
int git_rebase_next(.git_rebase_operation** operation, libgit2_d.types.git_rebase* rebase)

Performs the next rebase operation and returns the information about it. If the operation is one that applies a patch (which is any operation except git_rebase_operation_t.GIT_REBASE_OPERATION_EXEC) then the patch will be applied and the index and working directory will be updated with the changes. If there are conflicts, you will need to address those before committing the changes.

git_rebase_onto_id
const(libgit2_d.oid.git_oid)* git_rebase_onto_id(libgit2_d.types.git_rebase* rebase)

Gets the onto id for merge rebases.

git_rebase_onto_name
const(char)* git_rebase_onto_name(libgit2_d.types.git_rebase* rebase)

Gets the onto ref name for merge rebases.

git_rebase_open
int git_rebase_open(libgit2_d.types.git_rebase** out_, libgit2_d.types.git_repository* repo, const(git_rebase_options)* opts)

Opens an existing rebase that was previously started by either an invocation of git_rebase_init or by another client.

git_rebase_operation_byindex
.git_rebase_operation* git_rebase_operation_byindex(libgit2_d.types.git_rebase* rebase, size_t idx)

Gets the rebase operation specified by the given index.

git_rebase_operation_current
size_t git_rebase_operation_current(libgit2_d.types.git_rebase* rebase)

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.

git_rebase_operation_entrycount
size_t git_rebase_operation_entrycount(libgit2_d.types.git_rebase* rebase)

Gets the count of rebase operations that are to be applied.

git_rebase_options_init
int git_rebase_options_init(.git_rebase_options* opts, uint version_)

Initialize git_rebase_options structure

git_rebase_orig_head_id
const(libgit2_d.oid.git_oid)* git_rebase_orig_head_id(libgit2_d.types.git_rebase* rebase)

Gets the original HEAD id for merge rebases.

git_rebase_orig_head_name
const(char)* git_rebase_orig_head_name(libgit2_d.types.git_rebase* rebase)

Gets the original HEAD ref name for merge rebases.

Manifest constants

GIT_REBASE_NO_OPERATION
enum GIT_REBASE_NO_OPERATION;

Indicates that a rebase operation is not (yet) in progress.

GIT_REBASE_OPTIONS_VERSION
enum GIT_REBASE_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_rebase_operation
struct git_rebase_operation

A rebase operation

git_rebase_options
struct git_rebase_options

Rebase options

Meta