pub struct PathspecMatchContext {
pub is_directory: bool,
pub is_git_submodule: 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).
Trait Implementations§
Source§impl Clone for PathspecMatchContext
impl Clone for PathspecMatchContext
Source§fn clone(&self) -> PathspecMatchContext
fn clone(&self) -> PathspecMatchContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathspecMatchContext
impl Debug for PathspecMatchContext
Source§impl Default for PathspecMatchContext
impl Default for PathspecMatchContext
Source§fn default() -> PathspecMatchContext
fn default() -> PathspecMatchContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for PathspecMatchContext
impl PartialEq for PathspecMatchContext
impl Copy for PathspecMatchContext
impl Eq 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