From 0e9ce260ab1abfedaa3a17693ed66b3e04f4544c Mon Sep 17 00:00:00 2001 From: Philip Metzger Date: Sun, 8 Dec 2024 00:33:56 +0100 Subject: [PATCH] diff_util: Add the short alias `S` for `--stat` This was a suggestion from sm in the libera #jujutsu IRC chat. --- CHANGELOG.md | 3 +++ cli/src/diff_util.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37bfed7bba..e27e802d1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). * Templates now support the `>=`, `>`, `<=`, and `<` relational operators for `Integer` types. +* The `--stat` option for `jj log`, `jj show` and `jj diff` now has a + short alias `-S` + ### Fixed bugs * The `$NO_COLOR` environment variable must now be non-empty to be respected. diff --git a/cli/src/diff_util.rs b/cli/src/diff_util.rs index 9fbffbca32..9684a20b06 100644 --- a/cli/src/diff_util.rs +++ b/cli/src/diff_util.rs @@ -92,7 +92,7 @@ pub struct DiffFormatArgs { #[arg(long, short)] pub summary: bool, /// Show a histogram of the changes - #[arg(long)] + #[arg(long, short = "S")] pub stat: bool, /// For each path, show only its type before and after ///