pub struct ConeWorkspace {
pub recursive_slash: BTreeSet<String>,
pub parent_slash: BTreeSet<String>,
}Expand description
Mutable cone sparse state (Git pattern_list hashmaps) for building sparse-checkout files.
Fields§
§recursive_slash: BTreeSet<String>§parent_slash: BTreeSet<String>Implementations§
Source§impl ConeWorkspace
impl ConeWorkspace
Sourcepub fn from_cone_patterns(cp: &ConePatterns) -> Self
pub fn from_cone_patterns(cp: &ConePatterns) -> Self
Build from parsed cone file content.
Sourcepub fn from_directory_list(dirs: &[String]) -> Self
pub fn from_directory_list(dirs: &[String]) -> Self
Rebuild from a set of repository-relative directory paths (after pruning descendants).
Sourcepub fn insert_directory(&mut self, rel: &str)
pub fn insert_directory(&mut self, rel: &str)
Insert a repository-relative directory path (no leading slash).
Sourcepub fn to_sparse_checkout_file(&self) -> String
pub fn to_sparse_checkout_file(&self) -> String
Serialize to .git/info/sparse-checkout cone format (includes /* and !/*/ header).
Sourcepub fn list_cone_directories(&self) -> Vec<String>
pub fn list_cone_directories(&self) -> Vec<String>
Directory names for git sparse-checkout list in cone mode (no leading slash).
Trait Implementations§
Source§impl Clone for ConeWorkspace
impl Clone for ConeWorkspace
Source§fn clone(&self) -> ConeWorkspace
fn clone(&self) -> ConeWorkspace
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 ConeWorkspace
impl Debug for ConeWorkspace
Source§impl Default for ConeWorkspace
impl Default for ConeWorkspace
Source§fn default() -> ConeWorkspace
fn default() -> ConeWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConeWorkspace
impl RefUnwindSafe for ConeWorkspace
impl Send for ConeWorkspace
impl Sync for ConeWorkspace
impl Unpin for ConeWorkspace
impl UnsafeUnpin for ConeWorkspace
impl UnwindSafe for ConeWorkspace
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