forked from mirrors/jj
cli: add update
and up
as aliases for checkout
Mercurial has these aliases, so it will be familiar for Mercurial users. My only hesitation about adding these aliases is that we might want the these names for something else in the future. You could imagine `up` and `down` commands, for example. We still have a long time before 1.0, so we have plenty of opportunity to make breaking changes if we think of some other use for the names :)
This commit is contained in:
parent
0865b1ccff
commit
b46317596b
1 changed files with 1 additions and 1 deletions
|
@ -1172,7 +1172,7 @@ struct InitArgs {
|
||||||
/// be created on top, and that will be checked out. For more information, see
|
/// be created on top, and that will be checked out. For more information, see
|
||||||
/// https://github.com/martinvonz/jj/blob/main/docs/working-copy.md.
|
/// https://github.com/martinvonz/jj/blob/main/docs/working-copy.md.
|
||||||
#[derive(clap::Args, Clone, Debug)]
|
#[derive(clap::Args, Clone, Debug)]
|
||||||
#[clap(visible_alias = "co")]
|
#[clap(visible_aliases = &["co", "update", "up"])]
|
||||||
struct CheckoutArgs {
|
struct CheckoutArgs {
|
||||||
/// The revision to update to
|
/// The revision to update to
|
||||||
revision: String,
|
revision: String,
|
||||||
|
|
Loading…
Reference in a new issue