From ce098a729a7e226482537158e42900b77be8f9ef Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Thu, 16 Mar 2023 21:16:18 -0700 Subject: [PATCH] cli: remove `jj hide` as alias for `jj abandon` I haven't heard of anyone using this alias, so let's remove it. It's easy for users to add it as their own alias if they really want it. --- CHANGELOG.md | 3 +++ src/commands/mod.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0197ef71f..871045f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `jj log`, and `jj obslog`) now accept `--types` to show only the type of file before and after. +* `jj hide` (alias for `jj abandon`) is no longer available. Use `jj abandon` + instead. + ### Fixed bugs * Modify/delete conflicts now include context lines diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 5091087a4..7a866723e 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -439,7 +439,6 @@ struct DuplicateArgs { /// similar to `jj restore`; the difference is that `jj abandon` gives you a new /// change, while `jj restore` updates the existing change. #[derive(clap::Args, Clone, Debug)] -#[command(visible_alias = "hide")] struct AbandonArgs { /// The revision(s) to abandon #[arg(default_value = "@")]