pub struct Pathspec { /* fields omitted */ }
Structure representing a compiled pathspec used for matching against various
structures.
Creates a new pathspec from a list of specs to match against.
Match a pathspec against files in a diff.
The list returned contains the list of all matched filenames (unless you
pass PATHSPEC_FAILURES_ONLY
in the flags) and may also contain the
list of pathspecs with no match if the PATHSPEC_FIND_FAILURES
flag is
specified.
Match a pathspec against files in a tree.
The list returned contains the list of all matched filenames (unless you
pass PATHSPEC_FAILURES_ONLY
in the flags) and may also contain the
list of pathspecs with no match if the PATHSPEC_FIND_FAILURES
flag is
specified.
This matches the pathspec against the files in the repository index.
The list returned contains the list of all matched filenames (unless you
pass PATHSPEC_FAILURES_ONLY
in the flags) and may also contain the
list of pathspecs with no match if the PATHSPEC_FIND_FAILURES
flag is
specified.
Match a pathspec against the working directory of a repository.
This matches the pathspec against the current files in the working
directory of the repository. It is an error to invoke this on a bare
repo. This handles git ignores (i.e. ignored files will not be
considered to match the pathspec unless the file is tracked in the
index).
The list returned contains the list of all matched filenames (unless you
pass PATHSPEC_FAILURES_ONLY
in the flags) and may also contain the
list of pathspecs with no match if the PATHSPEC_FIND_FAILURES
flag is
specified.
Try to match a path against a pathspec
Unlike most of the other pathspec matching functions, this will not fall
back on the native case-sensitivity for your platform. You must
explicitly pass flags to control case sensitivity or else this will fall
back on being case sensitive.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static