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

cli: move jj co alias to config file, so it can be overridden

This way users can override `jj co` to mean `jj new` if they want to
get rid of the warning.
This commit is contained in:
Martin von Zweigbergk 2024-03-04 21:26:31 -08:00 committed by Martin von Zweigbergk
parent 037c4d0fe0
commit 663e35255f
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,6 @@ use crate::ui::Ui;
/// For more information, see /// 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)]
#[command(visible_aliases = &["co"])]
pub(crate) struct CheckoutArgs { pub(crate) struct CheckoutArgs {
/// The revision to update to /// The revision to update to
revision: RevisionArg, revision: RevisionArg,

View file

@ -1,5 +1,7 @@
# The code assumes that this table exists, so don't delete it even if you remove
# all aliases from here.
[aliases] [aliases]
# Placeholder: added by user co = ["checkout"]
[format] [format]
tree-level-conflicts = true tree-level-conflicts = true