class Agate::Rebase

Overview

Represents an in-progress rebase operation.

Defined in:

agate/rebase.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(repo : Repository, branch : AnnotatedCommit | Nil, upstream : AnnotatedCommit | Nil, onto : AnnotatedCommit | Nil = nil) : Rebase #

Initializes a new rebase.


[View source]
def self.open(repo : Repository) : Rebase #

Opens an existing in-progress rebase.


[View source]

Instance Method Detail

def abort : Nil #

Aborts the rebase, restoring the original HEAD.


[View source]
def commit(committer : Signature, author : Signature | Nil = nil, message : String | Nil = nil) : OID #

Commits the current rebase operation.


[View source]
def finish(sig : Signature) : Nil #

Finishes the rebase.


[View source]
def inmemory_index : Index #

Gets the in-memory index for resolving conflicts.


[View source]
def next : Tuple(RebaseOperationType, OID) | Nil #

Advances to the next rebase operation. Returns the operation type and OID, or nil if the rebase is complete.


[View source]
def operation_count : Int32 #

Returns the number of operations in the rebase.


[View source]