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

cli: Add 'dup' alias to 'duplicate' command

This commit is contained in:
Preston Van Loon 2024-04-26 09:32:02 -05:00
parent d13be927a8
commit 2a22c879bd
2 changed files with 3 additions and 0 deletions

View file

@ -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.
* `jj duplicate` now has a shortened alias `jj dup`.
### Fixed bugs
* Revsets now support `\`-escapes in string literal.

View file

@ -26,6 +26,7 @@ use crate::ui::Ui;
/// Create a new change with the same content as an existing one
#[derive(clap::Args, Clone, Debug)]
#[command(visible_aliases = &["dup"])]
pub(crate) struct DuplicateArgs {
/// The revision(s) to duplicate
#[arg(default_value = "@")]