Skip to content

Commit a9aac4f

Browse files
authored
Merge pull request #1471 from EliahKagan/hidden
Improve help text about hidden repos
2 parents 348b9bf + 6eb4ea6 commit a9aac4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plumbing/options/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ pub mod clean {
583583
/// Remove whole directories.
584584
#[arg(long, short = 'd')]
585585
pub directories: bool,
586-
/// Remove nested repositories.
586+
/// Remove nested repositories, even outside ignored directories.
587587
#[arg(long, short = 'r')]
588588
pub repositories: bool,
589589
/// Pathspec patterns are used to match the result of the dirwalk, not the dirwalk itself.
@@ -593,6 +593,9 @@ pub mod clean {
593593
#[arg(long, short = 'm')]
594594
pub pathspec_matches_result: bool,
595595
/// Enter ignored directories to skip repositories contained within.
596+
///
597+
/// This identifies and avoids deleting separate repositories that are nested inside
598+
/// ignored directories eligible for removal.
596599
#[arg(long)]
597600
pub skip_hidden_repositories: Option<FindRepository>,
598601
/// What kind of repositories to find inside of untracked directories.

0 commit comments

Comments
 (0)