pub struct ConePatterns {
pub full_cone: bool,
pub recursive_slash: BTreeSet<String>,
pub parent_slash: BTreeSet<String>,
}Expand description
Cone-mode sparse state: keys use a leading / (Git’s internal form).
Fields§
§full_cone: boolfull_cone field.
recursive_slash: BTreeSet<String>recursive_slash field.
parent_slash: BTreeSet<String>parent_slash field.
Implementations§
Source§impl ConePatterns
impl ConePatterns
Sourcepub fn try_parse_with_warnings(
content: &str,
warnings: &mut Vec<String>,
) -> Option<Self>
pub fn try_parse_with_warnings( content: &str, warnings: &mut Vec<String>, ) -> Option<Self>
Parse sparse-checkout lines in cone mode. On structural failure returns None and
callers should fall back to non-cone matching (and may print warnings).
Sourcepub fn path_included(&self, path: &str) -> bool
pub fn path_included(&self, path: &str) -> bool
Whether path (repository-relative, no leading slash) is inside the cone.
Trait Implementations§
Source§impl Clone for ConePatterns
impl Clone for ConePatterns
Source§impl Debug for ConePatterns
impl Debug for ConePatterns
Auto Trait Implementations§
impl Freeze for ConePatterns
impl RefUnwindSafe for ConePatterns
impl Send for ConePatterns
impl Sync for ConePatterns
impl Unpin for ConePatterns
impl UnsafeUnpin for ConePatterns
impl UnwindSafe for ConePatterns
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