From cbc54ba68598f0c1fa1c5ed3c02b5f62999ae1c8 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 22 May 2026 13:58:00 -0600 Subject: [PATCH] chore(release): 0.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc6eb0c..2af0419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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 ` as before. +- `jjf show ` (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