pub struct AddLinkedWorktreeOptions {
pub path: PathBuf,
pub branch: Option<WorktreeBranch>,
pub start_point: Option<String>,
pub force: bool,
pub lock: Option<LockWorktreeOptions>,
pub no_checkout: bool,
pub track: bool,
}Expand description
Options for add_linked_worktree.
Fields§
§path: PathBufDirectory for the new working tree (created when missing).
branch: Option<WorktreeBranch>Branch mode. When None, a new branch named after the path basename is created.
start_point: Option<String>Start commit (revision spec). Defaults to the current HEAD commit.
force: boolReplace a stale registration when the working tree directory is missing.
lock: Option<LockWorktreeOptions>When set, write locked before checkout finishes (same order as Git).
no_checkout: boolRegister the worktree and set HEAD without populating the working tree or index.
track: boolWhen the start point is a remote-tracking branch, configure upstream for the new branch.
Trait Implementations§
Source§impl Clone for AddLinkedWorktreeOptions
impl Clone for AddLinkedWorktreeOptions
Auto Trait Implementations§
impl Freeze for AddLinkedWorktreeOptions
impl RefUnwindSafe for AddLinkedWorktreeOptions
impl Send for AddLinkedWorktreeOptions
impl Sync for AddLinkedWorktreeOptions
impl Unpin for AddLinkedWorktreeOptions
impl UnsafeUnpin for AddLinkedWorktreeOptions
impl UnwindSafe for AddLinkedWorktreeOptions
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