ok/jj
1
0
Fork 0
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:
Martin von Zweigbergk 2022-05-18 23:19:29 -07:00 committed by Martin von Zweigbergk
parent 0865b1ccff
commit b46317596b

View file

@ -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,