pub enum WorktreeAction {
Add {
path: PathBuf,
commit_ish: Option<String>,
new_branch: Option<String>,
detach: bool,
force: bool,
track: bool,
},
List {
porcelain: bool,
},
Remove {
path: PathBuf,
force: bool,
},
Prune {
verbose: bool,
dry_run: bool,
},
Move {
source: PathBuf,
destination: PathBuf,
},
Lock {
path: PathBuf,
reason: Option<String>,
},
Unlock {
path: PathBuf,
},
}Expand description
Actions supported by git worktree.
Variants§
Add
git worktree add [-b <branch>] [--detach] [--force] <path> [<commit-ish>].
Fields
List
git worktree list [--porcelain].
Remove
git worktree remove <path>.
Prune
git worktree prune.
Move
git worktree move <source> <destination>.
Lock
git worktree lock <path> [--reason <s>].
Unlock
git worktree unlock <path>.
Trait Implementations§
Source§impl Clone for WorktreeAction
impl Clone for WorktreeAction
Source§fn clone(&self) -> WorktreeAction
fn clone(&self) -> WorktreeAction
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 moreAuto Trait Implementations§
impl Freeze for WorktreeAction
impl RefUnwindSafe for WorktreeAction
impl Send for WorktreeAction
impl Sync for WorktreeAction
impl Unpin for WorktreeAction
impl UnsafeUnpin for WorktreeAction
impl UnwindSafe for WorktreeAction
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