pub enum Source {
IdMapping,
WorktreeThenIdMappingIfNotSkipped,
}
Expand description
Decide where to read .gitignore
files from.
Variants§
IdMapping
Retrieve ignore files from id mappings, see State::id_mappings_from_index().
These mappings are typically produced from an index. If a tree should be the source, build an attribute list from a tree instead, or convert a tree to an index.
Use this when no worktree checkout is available, like in bare repositories or when accessing blobs from other parts of the history which aren’t checked out.
WorktreeThenIdMappingIfNotSkipped
Read from the worktree and if not present, read them from the id mappings if these don’t have the skip-worktree bit set.
Implementations§
Trait Implementations§
impl Copy for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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