Ggit.Rebase¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Ggit.Rebase(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a rebase object.
- abort()¶
- Raises:
Aborts a rebase that is currently in progress, resetting the repository and working directory to their state before rebase began.
- commit(author, committer, message)¶
- Parameters:
author (
Ggit.Signature
orNone
) – aGgit.Signature
orNone
to keep the author from the original commit.committer (
Ggit.Signature
) – aGgit.Signature
.message (
str
orNone
) – the message for this commit, orNone
to use the message from the original commit.
- Raises:
- Returns:
- Return type:
Commits the current patch. You must have resolved any conflicts that were introduced during the patch application from the
Ggit.Rebase.next
() invocation.
- finish(signature)¶
- Parameters:
signature (
Ggit.Signature
orNone
) – the identity that is finishing the rebase orNone
.- Raises:
Finishes a rebase that is currently in progress once all patches have been applied.
- get_operation_by_index(idx)¶
- Parameters:
idx (
int
) – The index of the rebase operation to retrieve.- Returns:
The rebase operation or
None
if idx was out of bounds.- Return type:
Gets the rebase operation specified by idx.
- get_operation_entry_count()¶
- Returns:
the count of rebase operations that are to be applied.
- Return type:
Gets the count of rebase operations that are to be applied.
- get_operation_index()¶
- Returns:
The index of the rebase operation currently being applied.
- Return type:
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
Ggit.Repository.rebase_init
() but not yetGgit.Rebase.next
()) then this returns GGIT_REBASE_NO_OPERATION.
- next()¶
- Raises:
- Returns:
the rebase operation that is to be performed next or
None
.- Return type:
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
Ggit.RebaseOperationType.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.