pub struct Clean<'a> { /* private fields */ }Expand description
Builder for git clean command.
See git clean --help for full documentation.
Implementations§
Source§impl<'a> Clean<'a>
impl<'a> Clean<'a>
Sourcepub fn directories(self) -> Self
pub fn directories(self) -> Self
Recurse into untracked directories.
Corresponds to -d (no long form).
Sourcepub fn directories_if(self, value: bool) -> Self
pub fn directories_if(self, value: bool) -> Self
Conditionally recurse into untracked directories.
Sourcepub fn force(self) -> Self
pub fn force(self) -> Self
Force removal even when clean.requireForce is set.
Corresponds to --force.
Sourcepub fn include_ignored(self) -> Self
pub fn include_ignored(self) -> Self
Also remove files ignored by .gitignore.
Corresponds to -x (no long form).
Sourcepub fn include_ignored_if(self, value: bool) -> Self
pub fn include_ignored_if(self, value: bool) -> Self
Conditionally also remove ignored files.
Sourcepub async fn status(self) -> Result<(), CommandError>
pub async fn status(self) -> Result<(), CommandError>
Execute the command and return the exit status.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Clean<'a>
impl<'a> RefUnwindSafe for Clean<'a>
impl<'a> Send for Clean<'a>
impl<'a> Sync for Clean<'a>
impl<'a> Unpin for Clean<'a>
impl<'a> UnsafeUnpin for Clean<'a>
impl<'a> UnwindSafe for Clean<'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