Skip to content

Commit

Permalink
cli: rephrase hint for updating just one branch by "branch move"
Browse files Browse the repository at this point in the history
Suggested by Ilya.
  • Loading branch information
yuja committed Jul 4, 2024
1 parent cdc0cc3 commit 1cae93c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cli/src/commands/branch/move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ pub fn cmd_branch_move(
writeln!(formatter)?;
}
if matched_branches.len() > 1 && args.names.is_empty() {
writeln!(ui.hint_default(), "Specify branch by name to update one.")?;
writeln!(
ui.hint_default(),
"Specify branch by name to update just one of the branches."
)?;
}
Ok(())
}
2 changes: 1 addition & 1 deletion cli/tests/test_branch_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ fn test_branch_move_matching() {
let (_stdout, stderr) = test_env.jj_cmd_ok(&repo_path, &["branch", "move", "--from=::@"]);
insta::assert_snapshot!(stderr, @r###"
Moved 2 branches to vruxwmqv a2781dd9 b1 c1 | (empty) head2
Hint: Specify branch by name to update one.
Hint: Specify branch by name to update just one of the branches.
"###);
insta::assert_snapshot!(get_log_output(&test_env, &repo_path), @r###"
@ b1 c1 a2781dd9ee37
Expand Down

0 comments on commit 1cae93c

Please sign in to comment.