jjc is a Rust-based CLI tool providing non-interactive, scriptable hunk-level operations for the Jujutsu (jj) version control system. It requires jj v0.41.0 and offers three main commands: `jjc hunks` to list and inspect diff hunks with IDs and blame annotations, `jjc pick` to split selected hunks into a new commit (like a non-interactive `jj split`), `jjc drop` to revert specific hunks to parent content, and `jjc fold` to squash hunks into another revision. Hunks can be selected by ID prefix, change atom index, or target line range. The tool reads the jj repository directly via jj-lib without shelling out to jj commands. Limitations include text-only file support and minimal immutable commit checking.

3m read timeFrom tangled.org
Post cover image
Table of contents
Install #Commands #Hunk selectors #How it works #Limitations #
363 Impressions