diff --git a/src/plumbing/options/mod.rs b/src/plumbing/options/mod.rs index eed07840aee..cfbf0e705ff 100644 --- a/src/plumbing/options/mod.rs +++ b/src/plumbing/options/mod.rs @@ -583,7 +583,7 @@ pub mod clean { /// Remove whole directories. #[arg(long, short = 'd')] pub directories: bool, - /// Remove nested repositories. + /// Remove nested repositories, even outside ignored directories. #[arg(long, short = 'r')] pub repositories: bool, /// Pathspec patterns are used to match the result of the dirwalk, not the dirwalk itself. @@ -593,6 +593,9 @@ pub mod clean { #[arg(long, short = 'm')] pub pathspec_matches_result: bool, /// Enter ignored directories to skip repositories contained within. + /// + /// This identifies and avoids deleting separate repositories that are nested inside + /// ignored directories eligible for removal. #[arg(long)] pub skip_hidden_repositories: Option, /// What kind of repositories to find inside of untracked directories.