Skip to content

Commit

Permalink
cli: move jj co alias to config file, so it can be overridden
Browse files Browse the repository at this point in the history
This way users can override `jj co` to mean `jj new` if they want to
get rid of the warning.
  • Loading branch information
martinvonz committed Mar 7, 2024
1 parent 462c197 commit 7055bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion cli/src/commands/checkout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use crate::ui::Ui;
/// For more information, see
/// https://github.com/martinvonz/jj/blob/main/docs/working-copy.md.
#[derive(clap::Args, Clone, Debug)]
#[command(visible_aliases = &["co"])]
pub(crate) struct CheckoutArgs {
/// The revision to update to
revision: RevisionArg,
Expand Down
4 changes: 3 additions & 1 deletion cli/src/config/misc.toml
Original file line number Diff line number Diff line change
@@ -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]
# Placeholder: added by user
co = ["checkout"]

[format]
tree-level-conflicts = true
Expand Down

0 comments on commit 7055bfd

Please sign in to comment.