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 13, 2024
1 parent fca92f1 commit 0e9ce26
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 @@ -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.
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 = "S")]
pub stat: bool,
/// For each path, show only its type before and after
///
Expand Down

0 comments on commit 0e9ce26

Please sign in to comment.