pub struct RepositoryWorktreeConfig {
pub mode: Option<WorktreeMode>,
pub base_dir: Option<PathBuf>,
pub prefix: Option<String>,
pub cleanup: Option<WorktreeCleanupConfig>,
pub merge_detection: Option<WorktreeMergeDetectionConfig>,
pub disabled: Option<bool>,
}Expand description
Repository-specific worktree configuration overrides
Fields§
§mode: Option<WorktreeMode>Override worktree storage mode for this repository
base_dir: Option<PathBuf>Override global base directory for this repository
prefix: Option<String>Override global prefix for this repository
cleanup: Option<WorktreeCleanupConfig>Repository-specific cleanup settings
merge_detection: Option<WorktreeMergeDetectionConfig>Repository-specific merge detection settings
disabled: Option<bool>Disable worktree management for this repository
Implementations§
Source§impl RepositoryWorktreeConfig
impl RepositoryWorktreeConfig
Sourcepub fn merge_with_global(&self, global: &WorktreeConfig) -> WorktreeConfig
pub fn merge_with_global(&self, global: &WorktreeConfig) -> WorktreeConfig
Merge repository-specific config with global config
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if worktree management is enabled for this repository
Trait Implementations§
Source§impl Clone for RepositoryWorktreeConfig
impl Clone for RepositoryWorktreeConfig
Source§fn clone(&self) -> RepositoryWorktreeConfig
fn clone(&self) -> RepositoryWorktreeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepositoryWorktreeConfig
impl Debug for RepositoryWorktreeConfig
Source§impl Default for RepositoryWorktreeConfig
impl Default for RepositoryWorktreeConfig
Source§impl<'de> Deserialize<'de> for RepositoryWorktreeConfig
impl<'de> Deserialize<'de> for RepositoryWorktreeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RepositoryWorktreeConfig
impl RefUnwindSafe for RepositoryWorktreeConfig
impl Send for RepositoryWorktreeConfig
impl Sync for RepositoryWorktreeConfig
impl Unpin for RepositoryWorktreeConfig
impl UnsafeUnpin for RepositoryWorktreeConfig
impl UnwindSafe for RepositoryWorktreeConfig
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