pub enum WorktreeAddRefresh {
UpToDate,
ModeOnly {
mode: u32,
},
StatOnly,
NeedsRestage,
}Expand description
Outcome of comparing a tracked index entry to its worktree path for staging refresh.
Variants§
UpToDate
Index already reflects the worktree; caller may skip staging.
ModeOnly
Executable bit differs while blob content is unchanged.
StatOnly
Blob OID and mode are unchanged; only cached stat fields should be refreshed.
NeedsRestage
Content, type, or mode/blob mismatch requires a full restage (read, convert, hash).
Trait Implementations§
Source§impl Clone for WorktreeAddRefresh
impl Clone for WorktreeAddRefresh
impl Copy for WorktreeAddRefresh
Source§impl Debug for WorktreeAddRefresh
impl Debug for WorktreeAddRefresh
impl Eq for WorktreeAddRefresh
Source§impl PartialEq for WorktreeAddRefresh
impl PartialEq for WorktreeAddRefresh
impl StructuralPartialEq for WorktreeAddRefresh
Auto Trait Implementations§
impl Freeze for WorktreeAddRefresh
impl RefUnwindSafe for WorktreeAddRefresh
impl Send for WorktreeAddRefresh
impl Sync for WorktreeAddRefresh
impl Unpin for WorktreeAddRefresh
impl UnsafeUnpin for WorktreeAddRefresh
impl UnwindSafe for WorktreeAddRefresh
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