Skip to content

Commit

Permalink
diff_util: Add the short alias S for --stat
Browse files Browse the repository at this point in the history
This was a suggestion from sm in the libera #jujutsu IRC chat.
  • Loading branch information
PhilipMetzger committed Dec 8, 2024
1 parent 652d163 commit 4da7132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### New features

* 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.
Expand Down
2 changes: 1 addition & 1 deletion cli/src/diff_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub struct DiffFormatArgs {
#[arg(long, short)]
pub summary: bool,
/// Show a histogram of the changes
#[arg(long)]
#[arg(long, short_alias = 'S')]
pub stat: bool,
/// For each path, show only its type before and after
///
Expand Down

0 comments on commit 4da7132

Please sign in to comment.