Struct git2::WorktreePruneOptions
source · [−]pub struct WorktreePruneOptions { /* private fields */ }
Expand description
Options to configure how worktree pruning is performed
Implementations
sourceimpl WorktreePruneOptions
impl WorktreePruneOptions
sourcepub fn new() -> WorktreePruneOptions
pub fn new() -> WorktreePruneOptions
Creates a default set of pruning options
By defaults this will prune only worktrees that are no longer valid unlocked and not checked out
sourcepub fn valid(&mut self, valid: bool) -> &mut WorktreePruneOptions
pub fn valid(&mut self, valid: bool) -> &mut WorktreePruneOptions
Controls whether valid (still existing on the filesystem) worktrees will be pruned
Defaults to false
sourcepub fn locked(&mut self, locked: bool) -> &mut WorktreePruneOptions
pub fn locked(&mut self, locked: bool) -> &mut WorktreePruneOptions
Controls whether locked worktrees will be pruned
Defaults to false
sourcepub fn working_tree(&mut self, working_tree: bool) -> &mut WorktreePruneOptions
pub fn working_tree(&mut self, working_tree: bool) -> &mut WorktreePruneOptions
Controls whether the actual working tree on the fs is recursively removed
Defaults to false
sourcepub fn raw(&mut self) -> *mut git_worktree_prune_options
pub fn raw(&mut self) -> *mut git_worktree_prune_options
Get a set of raw prune options to be used with git_worktree_prune
Auto Trait Implementations
impl RefUnwindSafe for WorktreePruneOptions
impl Send for WorktreePruneOptions
impl Sync for WorktreePruneOptions
impl Unpin for WorktreePruneOptions
impl UnwindSafe for WorktreePruneOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more