class
Agate::Rebase
- Agate::Rebase
- Reference
- Object
Overview
Represents an in-progress rebase operation.
Defined in:
agate/rebase.crConstructors
-
.new(repo : Repository, branch : AnnotatedCommit | Nil, upstream : AnnotatedCommit | Nil, onto : AnnotatedCommit | Nil = nil) : Rebase
Initializes a new rebase.
-
.open(repo : Repository) : Rebase
Opens an existing in-progress rebase.
Instance Method Summary
-
#abort : Nil
Aborts the rebase, restoring the original HEAD.
-
#commit(committer : Signature, author : Signature | Nil = nil, message : String | Nil = nil) : OID
Commits the current rebase operation.
-
#finish(sig : Signature) : Nil
Finishes the rebase.
-
#inmemory_index : Index
Gets the in-memory index for resolving conflicts.
-
#next : Tuple(RebaseOperationType, OID) | Nil
Advances to the next rebase operation.
-
#operation_count : Int32
Returns the number of operations in the rebase.
Constructor Detail
def self.new(repo : Repository, branch : AnnotatedCommit | Nil, upstream : AnnotatedCommit | Nil, onto : AnnotatedCommit | Nil = nil) : Rebase
#
Initializes a new rebase.
Instance Method Detail
def commit(committer : Signature, author : Signature | Nil = nil, message : String | Nil = nil) : OID
#
Commits the current rebase operation.
Advances to the next rebase operation. Returns the operation type and OID, or nil if the rebase is complete.