Enum git_pathspec::MatchMode
source · pub enum MatchMode {
ShellGlob,
Literal,
PathAwareGlob,
}Expand description
Parts of magic signatures which don’t stack as they all configure the way path specs are matched.
Variants§
ShellGlob
Expand special characters like * similar to how the shell would do it.
See PathAwareGlob for the alternative.
Literal
Special characters in the pattern, like * or ?, are treated literally, effectively turning off globbing.
PathAwareGlob
A single * will not match a / in the pattern, but a ** will
Trait Implementations§
source§impl Ord for MatchMode
impl Ord for MatchMode
source§impl PartialEq<MatchMode> for MatchMode
impl PartialEq<MatchMode> for MatchMode
source§impl PartialOrd<MatchMode> for MatchMode
impl PartialOrd<MatchMode> for MatchMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more