forked from mirrors/jj
cli: Add 'dup' alias to 'duplicate' command
This commit is contained in:
parent
d13be927a8
commit
2a22c879bd
2 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
* A new global flag `--ignore-immutable` lets you rewrite immutable commits.
|
* A new global flag `--ignore-immutable` lets you rewrite immutable commits.
|
||||||
|
|
||||||
|
* `jj duplicate` now has a shortened alias `jj dup`.
|
||||||
|
|
||||||
### Fixed bugs
|
### Fixed bugs
|
||||||
|
|
||||||
* Revsets now support `\`-escapes in string literal.
|
* Revsets now support `\`-escapes in string literal.
|
||||||
|
|
|
@ -26,6 +26,7 @@ use crate::ui::Ui;
|
||||||
|
|
||||||
/// Create a new change with the same content as an existing one
|
/// Create a new change with the same content as an existing one
|
||||||
#[derive(clap::Args, Clone, Debug)]
|
#[derive(clap::Args, Clone, Debug)]
|
||||||
|
#[command(visible_aliases = &["dup"])]
|
||||||
pub(crate) struct DuplicateArgs {
|
pub(crate) struct DuplicateArgs {
|
||||||
/// The revision(s) to duplicate
|
/// The revision(s) to duplicate
|
||||||
#[arg(default_value = "@")]
|
#[arg(default_value = "@")]
|
||||||
|
|
Loading…
Reference in a new issue