forked from mirrors/jj
cli branch create/set
: add --to
aliases for -r
Now that `jj move` does not accept `-r` (since it has `--from` and `--to`), `jj set --to` seems more useful than `jj set -r`. `create --to` is also added for ease of switching between `branch create` and `branch move`.
This commit is contained in:
parent
1a387489d9
commit
ff0188d63a
2 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,10 @@ use crate::ui::Ui;
|
|||
#[derive(clap::Args, Clone, Debug)]
|
||||
pub struct BranchCreateArgs {
|
||||
/// The branch's target revision
|
||||
#[arg(long, short)]
|
||||
//
|
||||
// The `--to` alias exists for making it easier for the user to switch
|
||||
// between `branch create`, `branch move`, and `branch set`.
|
||||
#[arg(long, short, visible_alias = "to")]
|
||||
revision: Option<RevisionArg>,
|
||||
|
||||
/// The branches to create
|
||||
|
|
|
@ -25,7 +25,7 @@ use crate::ui::Ui;
|
|||
#[derive(clap::Args, Clone, Debug)]
|
||||
pub struct BranchSetArgs {
|
||||
/// The branch's target revision
|
||||
#[arg(long, short)]
|
||||
#[arg(long, short, visible_alias = "to")]
|
||||
revision: Option<RevisionArg>,
|
||||
|
||||
/// Allow moving the branch backwards or sideways
|
||||
|
|
Loading…
Reference in a new issue