class Agate::Pathspec::MatchList

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

Defined in:

agate/pathspec.cr

Instance Method Summary

Instance Method Detail

def [](index : Int32) : String #

Returns the matched filename at the given index.


[View source]
def each(& : String -> ) : Nil #

Iterates over all matched filenames.


[View source]
def failed_count : Int32 #

Returns the number of pathspec patterns that did not match anything. Only available if PathspecFlags::FindFailures was used.


[View source]
def failed_entries : Array(String) #

Returns the pathspec patterns that did not match anything. Only available if PathspecFlags::FindFailures was used.


[View source]
def size : Int32 #

Returns the number of matched entries.


[View source]
def to_a : Array(String) #

Returns all matched filenames as an array.


[View source]