pub struct WorktreeRecord {
pub name: String,
pub path: Option<String>,
pub source_path: String,
pub included: bool,
}Expand description
A registered git worktree carried in the pack.
Both halves of a worktree’s wiring are absolute paths — .git/worktrees/<name>/gitdir
points at the worktree’s .git file, and that .git file points back at the
admin directory. A plain extract leaves both aimed at the machine the pack
came from, so restore rewrites them.
Fields§
§name: StringWorktree name (the directory name under .git/worktrees/).
path: Option<String>Worktree location relative to the project root.
None when the worktree lives outside the root, in which case its
contents are not in the pack and restore only reports it.
source_path: StringOriginal absolute path of the worktree, as recorded at pack time.
included: boolWhether the worktree’s contents were included in the payload.
Trait Implementations§
Source§impl Clone for WorktreeRecord
impl Clone for WorktreeRecord
Source§fn clone(&self) -> WorktreeRecord
fn clone(&self) -> WorktreeRecord
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 WorktreeRecord
impl Debug for WorktreeRecord
Source§impl<'de> Deserialize<'de> for WorktreeRecord
impl<'de> Deserialize<'de> for WorktreeRecord
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 WorktreeRecord
impl RefUnwindSafe for WorktreeRecord
impl Send for WorktreeRecord
impl Sync for WorktreeRecord
impl Unpin for WorktreeRecord
impl UnsafeUnpin for WorktreeRecord
impl UnwindSafe for WorktreeRecord
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