class
Agate::Pathspec::MatchList
- Agate::Pathspec::MatchList
- Reference
- Object
Overview
The result of matching a pathspec against a repository, index, tree, or diff. Contains matched filenames and optionally the list of patterns that had no matches.
Included Modules
- Enumerable(String)
Defined in:
agate/pathspec.crInstance Method Summary
-
#[](index : Int32) : String
Returns the matched filename at the given index.
-
#each(& : String -> ) : Nil
Iterates over all matched filenames.
-
#failed_count : Int32
Returns the number of pathspec patterns that did not match anything.
-
#failed_entries : Array(String)
Returns the pathspec patterns that did not match anything.
-
#size : Int32
Returns the number of matched entries.
-
#to_a : Array(String)
Returns all matched filenames as an array.
Instance Method Detail
def failed_count : Int32
#
Returns the number of pathspec patterns that did not match
anything. Only available if PathspecFlags::FindFailures was used.
def failed_entries : Array(String)
#
Returns the pathspec patterns that did not match anything.
Only available if PathspecFlags::FindFailures was used.