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)
|
||||
|
||||
* `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
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue