chore(release): 0.4.0
CI / check / clippy / fmt (push) Canceled after 0s
CI / build (1.85) (push) Canceled after 0s
CI / build (stable) (push) Canceled after 0s

Restores `jj show` support, broken by the 0.3.0 dispatch rewrite.
`jj show` accepts its revision as a positional `[REVSET]` argument
rather than a `-r` option, which the help-driven dispatch didn't
recognize — so bare `jjf` (which defaults to `show`) errored instead
of opening the picker. A revision named as a bare positional now also
bypasses the picker, like an explicit `-r`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 4.7 committed 2026-05-22 13:58:43 -06:00
1 parent 7390b92a40
commit cbc54ba685
3 files changed
+32 -2

No files matched your search

+30
View File
@@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.0] — 2026-05-22
Restores `jj show` support, which the 0.3.0 dispatch rewrite broke:
bare `jjf` (which defaults to `show`) works again, and a revision
named as a bare positional bypasses the picker.
### Fixed
- Bare `jjf` (which defaults to the `show` subcommand) no longer errors
with "'jj show' takes no revset flag (-r/--to)". The 0.3.0 help-driven
dispatch only scanned a leaf's `Options:` block, but `jj show` accepts
its revision as a positional `[REVSET]` argument. jjf now also reads
the `Arguments:` block and recognizes a positional revset that exposes
`-r` as an alias, injecting `-r <picked>` as before.
- `jjf show <rev>` (a revision passed as a bare positional, e.g.
`jjf show @-`) now bypasses the picker and runs verbatim, instead of
launching the picker and appending a second, conflicting `-r`. The
bypass check previously only recognized explicit revset *flags*; it
now also recognizes a bare positional for positional-revset leaves.
Option values are not mistaken for positionals — jjf reads the leaf's
full option set (including `Global Options:`) to step over them, so
`jjf show -T <template>` still opens the picker.
### Added
- The bypass check also recognizes the inline `--revision=<rev>` /
`--to=<rev>` form, not just space-separated flags.
[0.4.0]: https://github.com/swaits/jjf/releases/tag/v0.4.0
## [0.3.0] — 2026-05-04 ## [0.3.0] — 2026-05-04
Subcommand dispatch is now help-driven instead of substring-matching Subcommand dispatch is now help-driven instead of substring-matching
Generated
+1 -1
View File
@@ -99,7 +99,7 @@ dependencies = [
[[package]] [[package]]
name = "jjf" name = "jjf"
version = "0.3.0" version = "0.4.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"crossterm", "crossterm",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "jjf" name = "jjf"
version = "0.3.0" version = "0.4.0"
edition = "2024" edition = "2024"
rust-version = "1.85" rust-version = "1.85"
authors = ["Stephen Waits <steve@waits.net>"] authors = ["Stephen Waits <steve@waits.net>"]