forked from mirrors/jj
feat(cli): Add -f/-t for --from/--to to jj move
This commit is contained in:
parent
0fc5005b8a
commit
b533cdc538
3 changed files with 6 additions and 4 deletions
|
@ -55,6 +55,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
* `--verbose/-v` is now `--debug` (no short option since it's not intended to be used often)
|
* `--verbose/-v` is now `--debug` (no short option since it's not intended to be used often)
|
||||||
|
|
||||||
|
* `jj move --from/--to` can now be abbreviated to `jj move -f/-t`
|
||||||
|
|
||||||
### Fixed bugs
|
### Fixed bugs
|
||||||
|
|
||||||
* On Windows, symlinks in the repo are now materialized as regular files in the
|
* On Windows, symlinks in the repo are now materialized as regular files in the
|
||||||
|
|
|
@ -38,10 +38,10 @@ use crate::ui::Ui;
|
||||||
#[command(group(ArgGroup::new("to_move").args(&["from", "to"]).multiple(true).required(true)))]
|
#[command(group(ArgGroup::new("to_move").args(&["from", "to"]).multiple(true).required(true)))]
|
||||||
pub(crate) struct MoveArgs {
|
pub(crate) struct MoveArgs {
|
||||||
/// Move part of this change into the destination
|
/// Move part of this change into the destination
|
||||||
#[arg(long)]
|
#[arg(long, short)]
|
||||||
from: Option<RevisionArg>,
|
from: Option<RevisionArg>,
|
||||||
/// Move part of the source into this change
|
/// Move part of the source into this change
|
||||||
#[arg(long)]
|
#[arg(long, short)]
|
||||||
to: Option<RevisionArg>,
|
to: Option<RevisionArg>,
|
||||||
/// Interactively choose which parts to move
|
/// Interactively choose which parts to move
|
||||||
#[arg(long, short)]
|
#[arg(long, short)]
|
||||||
|
|
|
@ -1057,8 +1057,8 @@ If the source became empty and both the source and destination had a non-empty d
|
||||||
|
|
||||||
###### **Options:**
|
###### **Options:**
|
||||||
|
|
||||||
* `--from <FROM>` — Move part of this change into the destination
|
* `-f`, `--from <FROM>` — Move part of this change into the destination
|
||||||
* `--to <TO>` — Move part of the source into this change
|
* `-t`, `--to <TO>` — Move part of the source into this change
|
||||||
* `-i`, `--interactive` — Interactively choose which parts to move
|
* `-i`, `--interactive` — Interactively choose which parts to move
|
||||||
|
|
||||||
Possible values: `true`, `false`
|
Possible values: `true`, `false`
|
||||||
|
|
Loading…
Reference in a new issue