ok/jj
1
0
Fork 0
forked from mirrors/jj

feat(cli): Add -f/-t for --from/--to to jj move

This commit is contained in:
Alexis (Poliorcetics) Bourget 2024-02-12 23:27:57 +01:00 committed by Poliorcetics
parent 0fc5005b8a
commit b533cdc538
3 changed files with 6 additions and 4 deletions

View file

@ -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)
* `jj move --from/--to` can now be abbreviated to `jj move -f/-t`
### Fixed bugs
* On Windows, symlinks in the repo are now materialized as regular files in the

View file

@ -38,10 +38,10 @@ use crate::ui::Ui;
#[command(group(ArgGroup::new("to_move").args(&["from", "to"]).multiple(true).required(true)))]
pub(crate) struct MoveArgs {
/// Move part of this change into the destination
#[arg(long)]
#[arg(long, short)]
from: Option<RevisionArg>,
/// Move part of the source into this change
#[arg(long)]
#[arg(long, short)]
to: Option<RevisionArg>,
/// Interactively choose which parts to move
#[arg(long, short)]

View file

@ -1057,8 +1057,8 @@ If the source became empty and both the source and destination had a non-empty d
###### **Options:**
* `--from <FROM>` — Move part of this change into the destination
* `--to <TO>` — Move part of the source into this change
* `-f`, `--from <FROM>` — Move part of this change into the destination
* `-t`, `--to <TO>` — Move part of the source into this change
* `-i`, `--interactive` — Interactively choose which parts to move
Possible values: `true`, `false`