pub struct PathspecGlobalFlags {
pub literal_pathspecs: bool,
pub glob_pathspecs: bool,
pub noglob_pathspecs: bool,
pub icase_pathspecs: bool,
}Expand description
Git global pathspec mode flags (GIT_LITERAL_PATHSPECS, GIT_GLOB_PATHSPECS, …).
Fields§
§literal_pathspecs: boolGIT_LITERAL_PATHSPECS — treat * and ? in argv pathspecs as literal.
glob_pathspecs: boolGIT_GLOB_PATHSPECS — treat argv pathspecs as globs.
noglob_pathspecs: boolGIT_NOGLOB_PATHSPECS — disable glob interpretation in argv pathspecs.
icase_pathspecs: boolGIT_ICASE_PATHSPECS — case-fold argv pathspec patterns.
Implementations§
Source§impl PathspecGlobalFlags
impl PathspecGlobalFlags
Sourcepub fn from_environment(env: &Environment) -> Self
pub fn from_environment(env: &Environment) -> Self
Read Git’s global pathspec flags from a captured Environment.
Sourcepub fn validate(&self) -> Result<(), PathspecGlobalsError>
pub fn validate(&self) -> Result<(), PathspecGlobalsError>
Validate flag combinations the same way Git does.
§Errors
PathspecGlobalsError when the flags cannot be combined.
Trait Implementations§
Source§impl Clone for PathspecGlobalFlags
impl Clone for PathspecGlobalFlags
impl Copy for PathspecGlobalFlags
Source§impl Debug for PathspecGlobalFlags
impl Debug for PathspecGlobalFlags
Source§impl Default for PathspecGlobalFlags
impl Default for PathspecGlobalFlags
impl Eq for PathspecGlobalFlags
Source§impl PartialEq for PathspecGlobalFlags
impl PartialEq for PathspecGlobalFlags
impl StructuralPartialEq for PathspecGlobalFlags
Auto Trait Implementations§
impl Forget for PathspecGlobalFlags
impl Freeze for PathspecGlobalFlags
impl RefUnwindSafe for PathspecGlobalFlags
impl Send for PathspecGlobalFlags
impl Sync for PathspecGlobalFlags
impl Unpin for PathspecGlobalFlags
impl UnsafeUnpin for PathspecGlobalFlags
impl UnwindSafe for PathspecGlobalFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.