Skip to content

Commit 11bfbda

Browse files
docs(switch): correctly describe behavior of when check out target is omitted
Closes #1548
1 parent 92ec546 commit 11bfbda

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

git-branchless-opts/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,11 @@ pub struct SwitchOptions {
171171
#[clap(action, short = 'd', long = "detach")]
172172
pub detach: bool,
173173

174-
/// The commit or branch to check out.
174+
/// The commit or branch to check out. If not provided, defaults to the
175+
/// current commit.
175176
///
176177
/// If a revset is provided, it must evaluate to set with exactly 1 head.
177178
///
178-
/// If this is not provided, then interactive commit selection starts as
179-
/// if `--interactive` were passed.
180-
///
181179
/// If this is provided and the `--interactive` flag is passed, this
182180
/// text is used to pre-fill the interactive commit selector.
183181
#[clap(value_parser)]

0 commit comments

Comments
 (0)