pub struct PathspecMatchContext {
pub is_directory: bool,
pub is_git_submodule: bool,
pub precompose_paths: bool,
}Expand description
Optional path metadata for literal pathspecs with a trailing / (tree-walk / diff-tree).
Git treats dir/ as “directory or git submodule only”: a regular file dir
does not match, but a tree entry dir or gitlink dir does.
Fields§
§is_directory: boolThe index/tree entry is a directory (mode 040000).
is_git_submodule: boolThe entry is a git submodule / gitlink (160000).
precompose_paths: boolNFC-normalize pathspec and path when matching (per-repository core.precomposeunicode).
Trait Implementations§
Source§impl Clone for PathspecMatchContext
impl Clone for PathspecMatchContext
impl Copy for PathspecMatchContext
Source§impl Debug for PathspecMatchContext
impl Debug for PathspecMatchContext
Source§impl Default for PathspecMatchContext
impl Default for PathspecMatchContext
impl Eq for PathspecMatchContext
Source§impl PartialEq for PathspecMatchContext
impl PartialEq for PathspecMatchContext
impl StructuralPartialEq for PathspecMatchContext
Auto Trait Implementations§
impl Freeze for PathspecMatchContext
impl RefUnwindSafe for PathspecMatchContext
impl Send for PathspecMatchContext
impl Sync for PathspecMatchContext
impl Unpin for PathspecMatchContext
impl UnsafeUnpin for PathspecMatchContext
impl UnwindSafe for PathspecMatchContext
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.