class Agate::Walker

Overview

Walks the commit history of a repository.

Included Modules

Defined in:

agate/walker.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(repo : Repository) : Walker #

Creates a new walker for the repository.


[View source]

Instance Method Detail

def each(& : OID -> ) : Nil #

Iterates over commit OIDs in the walk.


[View source]
def each_commit(& : Commit -> ) : Nil #

Iterates over Commit objects in the walk.


[View source]
def hide(oid : OID) : Nil #

Hides a commit and its ancestors from the walk.


[View source]
def hide_glob(glob : String) : Nil #

Hides all references matching a glob.


[View source]
def hide_head : Nil #

Hides HEAD and its ancestors.


[View source]
def push(oid : OID) : Nil #

Pushes a commit OID as a starting point for the walk.


[View source]
def push_glob(glob : String) : Nil #

Pushes all references matching a glob pattern.


[View source]
def push_head : Nil #

Pushes HEAD as a starting point.


[View source]
def push_range(range : String) : Nil #

Pushes a range of commits (e.g., "HEAD~5..HEAD").


[View source]
def reset : Nil #

Resets the walker so it can be reused.


[View source]
def simplify_first_parent : Nil #

Simplifies the walk to first parents only.


[View source]
def sorting(mode : Sort) : Nil #

Sets the sorting mode for the walk.


[View source]