pub struct WorktreeCopyObservation {
pub admin_root: PathBuf,
pub before_admin_ids: BTreeSet<String>,
pub common_dir: PathBuf,
pub effective_cwd: PathBuf,
pub source_root: Option<PathBuf>,
pub selection: CopySelection,
}Expand description
What: The facts captured before real Git runs for an applicable invocation. Why: The comparison after Git needs the administrative directory, the identities that already existed and the roots that decide where copies land.
In TS you’d write (pseudocode):
type WorktreeCopyObservation = { adminRoot; beforeAdminIds; commonDir; effectiveCwd; sourceRoot? };Fields§
§admin_root: PathBufCommon-directory location holding linked-worktree administration.
before_admin_ids: BTreeSet<String>Linked-worktree administrative identities present before real Git ran.
common_dir: PathBufCanonical common Git directory, which owns the journals.
effective_cwd: PathBufWorking directory the Git queries run in.
source_root: Option<PathBuf>Canonical source worktree root; absent for a bare repository.
selection: CopySelectionWhich of the source’s ignored paths the copy takes.
Trait Implementations§
Source§impl Clone for WorktreeCopyObservation
impl Clone for WorktreeCopyObservation
Source§impl Debug for WorktreeCopyObservation
impl Debug for WorktreeCopyObservation
impl Eq for WorktreeCopyObservation
Source§impl PartialEq for WorktreeCopyObservation
impl PartialEq for WorktreeCopyObservation
impl StructuralPartialEq for WorktreeCopyObservation
Auto Trait Implementations§
impl Freeze for WorktreeCopyObservation
impl RefUnwindSafe for WorktreeCopyObservation
impl Send for WorktreeCopyObservation
impl Sync for WorktreeCopyObservation
impl Unpin for WorktreeCopyObservation
impl UnsafeUnpin for WorktreeCopyObservation
impl UnwindSafe for WorktreeCopyObservation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more