From 4e125b6c2f17017a87839e5832d94e41ea9b5fce Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Mon, 2 Dec 2024 21:09:45 -0800 Subject: [PATCH] cli: move `ci` alias to config file I would like to delete this alias altogether. By moving it to the config to start with, users can start overriding it themselves, as `commit` or whatever they prefer. --- cli/src/commands/commit.rs | 1 - cli/src/config/misc.toml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/commit.rs b/cli/src/commands/commit.rs index 52f75a4441..e1caf405aa 100644 --- a/cli/src/commands/commit.rs +++ b/cli/src/commands/commit.rs @@ -30,7 +30,6 @@ use crate::ui::Ui; /// Update the description and create a new change on top. #[derive(clap::Args, Clone, Debug)] -#[command(visible_aliases=&["ci"])] pub(crate) struct CommitArgs { /// Interactively choose which changes to include in the first commit #[arg(short, long)] diff --git a/cli/src/config/misc.toml b/cli/src/config/misc.toml index 262efbedc1..0a5ac585cd 100644 --- a/cli/src/config/misc.toml +++ b/cli/src/config/misc.toml @@ -3,6 +3,7 @@ [aliases] amend = ["squash"] b = ["bookmark"] +ci = ["commit"] unamend = ["unsquash"] [diff.color-words]