diff --git a/cli/src/commands/branch/move.rs b/cli/src/commands/branch/move.rs index 75ff77d1c6..efccb209c8 100644 --- a/cli/src/commands/branch/move.rs +++ b/cli/src/commands/branch/move.rs @@ -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(()) } diff --git a/cli/tests/test_branch_command.rs b/cli/tests/test_branch_command.rs index d5330aaa45..9c5461099d 100644 --- a/cli/tests/test_branch_command.rs +++ b/cli/tests/test_branch_command.rs @@ -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