class
Agate::Walker
- Agate::Walker
- Reference
- Object
Overview
Walks the commit history of a repository.
Included Modules
- Enumerable(Agate::OID)
Defined in:
agate/walker.crConstructors
-
.new(repo : Repository) : Walker
Creates a new walker for the repository.
Instance Method Summary
-
#each(& : OID -> ) : Nil
Iterates over commit OIDs in the walk.
-
#each_commit(& : Commit -> ) : Nil
Iterates over Commit objects in the walk.
-
#hide(oid : OID) : Nil
Hides a commit and its ancestors from the walk.
-
#hide_glob(glob : String) : Nil
Hides all references matching a glob.
-
#hide_head : Nil
Hides HEAD and its ancestors.
-
#push(oid : OID) : Nil
Pushes a commit OID as a starting point for the walk.
-
#push_glob(glob : String) : Nil
Pushes all references matching a glob pattern.
-
#push_head : Nil
Pushes HEAD as a starting point.
-
#push_range(range : String) : Nil
Pushes a range of commits (e.g., "HEAD~5..HEAD").
-
#reset : Nil
Resets the walker so it can be reused.
-
#simplify_first_parent : Nil
Simplifies the walk to first parents only.
-
#sorting(mode : Sort) : Nil
Sets the sorting mode for the walk.