pub struct WorktreeOrigin {
pub name: String,
pub admin_path: String,
pub parent_root: String,
}Expand description
The repository a packed worktree checkout belongs to.
This is the mirror image of WorktreeRecord: that one is written by the
repository about its worktrees, this one by a worktree about its repository.
Both halves of the wiring are absolute, so both packs need to know about the
other end to be restorable somewhere new.
Fields§
§name: StringThis worktree’s name under the parent’s .git/worktrees/.
admin_path: StringOriginal absolute path of the parent’s admin directory
(<parent_root>/.git/worktrees/<name>), as recorded at pack time.
parent_root: StringOriginal absolute path of the parent repository root.
Trait Implementations§
Source§impl Clone for WorktreeOrigin
impl Clone for WorktreeOrigin
Source§fn clone(&self) -> WorktreeOrigin
fn clone(&self) -> WorktreeOrigin
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 WorktreeOrigin
impl Debug for WorktreeOrigin
Source§impl<'de> Deserialize<'de> for WorktreeOrigin
impl<'de> Deserialize<'de> for WorktreeOrigin
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 WorktreeOrigin
impl RefUnwindSafe for WorktreeOrigin
impl Send for WorktreeOrigin
impl Sync for WorktreeOrigin
impl Unpin for WorktreeOrigin
impl UnsafeUnpin for WorktreeOrigin
impl UnwindSafe for WorktreeOrigin
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