From 94dbcf3b7e1ae5f8ffa7ef1f44dfb3231e1fd317 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Thu, 27 Jan 2022 22:26:46 -0800 Subject: [PATCH] cli: remove accidental `-r` argument from `jj move` --- src/commands.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 632947331..659c08329 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -1062,7 +1062,6 @@ With the `--from` and/or `--to` options, shows the difference from/to the given destination. The changes will be removed from the source. If that means that the \ source is now empty compared to its parent, it will be abandoned.", ) - .arg(rev_arg()) .arg( Arg::new("from") .long("from") @@ -2824,8 +2823,6 @@ fn cmd_new(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result<() fn cmd_move(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result<(), CommandError> { let mut workspace_command = command.workspace_helper(ui)?; - let commit = workspace_command.resolve_revision_arg(ui, args)?; - workspace_command.check_rewriteable(&commit)?; let source = workspace_command.resolve_single_rev(ui, args.value_of("from").unwrap())?; let mut destination = workspace_command.resolve_single_rev(ui, args.value_of("to").unwrap())?; if source.id() == destination.id() {