pub struct LinkedWorktree {
pub dir: PathBuf,
pub git: Option<WorktreeGit>,
}Expand description
A linked worktree of the project, and where in the repository’s git directory a commit in it writes.
Fields§
§dir: PathBuf§git: Option<WorktreeGit>As the engine found it when it made the worktree. Never re-read from
the worktree’s .git link or the commondir it leads to: a
sandboxed command may have rewritten both since. None: nothing in
the repository’s git directory is writable, so a sandboxed command
cannot commit there.
Trait Implementations§
Source§impl Clone for LinkedWorktree
impl Clone for LinkedWorktree
Source§impl Debug for LinkedWorktree
impl Debug for LinkedWorktree
impl Eq for LinkedWorktree
Source§impl PartialEq for LinkedWorktree
impl PartialEq for LinkedWorktree
impl StructuralPartialEq for LinkedWorktree
Auto Trait Implementations§
impl Forget for LinkedWorktree
impl Freeze for LinkedWorktree
impl Move for LinkedWorktree
impl RefUnwindSafe for LinkedWorktree
impl Send for LinkedWorktree
impl Sync for LinkedWorktree
impl Unpin for LinkedWorktree
impl UnsafeUnpin for LinkedWorktree
impl UnwindSafe for LinkedWorktree
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