pub struct WorktreeAddRefreshParams<'a> {
pub odb: &'a Odb,
pub ie: &'a IndexEntry,
pub meta: &'a Metadata,
pub abs_path: &'a Path,
pub rel_path: &'a str,
pub conv: &'a ConversionConfig,
pub file_attrs: &'a FileAttrs,
pub index_mtime: Option<(u32, u32)>,
pub staged_mode: u32,
pub filter_process: Option<&'a FilterProcessState>,
}Expand description
Inputs for classify_worktree_entry_for_add.
Fields§
§odb: &'a OdbObject database used to verify blob OIDs when stat data is inconclusive.
ie: &'a IndexEntryIndex entry being compared.
meta: &'a Metadatalstat metadata for the worktree path.
abs_path: &'a PathAbsolute worktree path to the file.
rel_path: &'a strRepository-relative path string.
conv: &'a ConversionConfigCRLF / filter conversion settings.
file_attrs: &'a FileAttrsPer-path attribute state.
index_mtime: Option<(u32, u32)>On-disk index mtime when the index was loaded; None skips racy checks.
staged_mode: u32Mode that would be written, after crate::index::WorktreeModePolicy against ie.mode
and any --chmod hint.
filter_process: Option<&'a FilterProcessState>Repository-scoped filter-process registry (when staging through a crate::repo::Repository).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WorktreeAddRefreshParams<'a>
impl<'a> !UnwindSafe for WorktreeAddRefreshParams<'a>
impl<'a> Freeze for WorktreeAddRefreshParams<'a>
impl<'a> Send for WorktreeAddRefreshParams<'a>
impl<'a> Sync for WorktreeAddRefreshParams<'a>
impl<'a> Unpin for WorktreeAddRefreshParams<'a>
impl<'a> UnsafeUnpin for WorktreeAddRefreshParams<'a>
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