pub struct Ignore { /* private fields */ }
Expand description
State related to the exclusion of files, supporting static overrides and globals, along with a stack of dynamically read ignore files from disk or from the index each time the directory changes.
Implementations§
source§impl Ignore
impl Ignore
sourcepub fn new(
overrides: Search,
globals: Search,
exclude_file_name_for_directories: Option<&BStr>,
source: Source,
) -> Self
pub fn new( overrides: Search, globals: Search, exclude_file_name_for_directories: Option<&BStr>, source: Source, ) -> Self
Configure gitignore file matching by providing the immutable groups being overrides
and globals
, while letting the directory
stack be dynamic.
The exclude_file_name_for_directories
is an optional override for the filename to use when checking per-directory
ignore files within the repository, defaults to.gitignore
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ignore
impl RefUnwindSafe for Ignore
impl Send for Ignore
impl Sync for Ignore
impl Unpin for Ignore
impl UnwindSafe for Ignore
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)