惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
IT之家
IT之家
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Y
Y Combinator Blog
博客园 - 【当耐特】
The Cloudflare Blog
宝玉的分享
宝玉的分享
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
小众软件
小众软件
博客园_首页
Last Week in AI
Last Week in AI
J
Java Code Geeks
V
V2EX
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
博客园 - 司徒正美
Engineering at Meta
Engineering at Meta
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
The Register - Security
The Register - Security
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
T
The Blog of Author Tim Ferriss
N
Netflix TechBlog - Medium
F
Full Disclosure
B
Blog
H
Help Net Security
C
Check Point Blog
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
P
Proofpoint News Feed
D
Docker
Microsoft Security Blog
Microsoft Security Blog

Lobsters

Lunacy | Red Vice CIFSwitch: a non-universal Linux local root vulnerability RIPE NCC session fixation: poaching logins with an Atlas probe GNOME 2.20 but its Web Components Agentic Search for Context Engineering – Leonie Monigatti Garnix is shutting down [not OC] Concerning Emacs (and Jazz) Nitpicking the shell history scene in ‘Tron: Legacy’ What's cooking on SourceHut? Q2 2026 The tenth OpenPGP email summit Package managers that package package managers Clojure on Fennel part three: parsing WordPress at 23 Finding Miscompiles for Fun, Not Profit GitHub - creusot-rs/creusot: Creusot helps you prove your Rust code is correct. Announcing Rust 1.96.0 | Rust Blog A Love Letter to Neovim sqlite AGENTS.md Am I a Bad Friend? CSS vs. JavaScript • Josh W. Comeau Erlang Ecosystem Foundation - Supporting the BEAM community A brief note about slot access cost in Common Lisp Keyboard latency probe Rethinking the GNOME clipboard issues Back to the Building Blocks’ Building Blocks Tech Notes: Theseus: translating win32 to wasm Fast is better than slow Content-addressed Rust builds (or, what kache actually caches) Intent to Prototype: Embedding API Canada’s Bill C-22 and the security cost of collecting more data 5 PostgreSQL locking behaviors that trip people up okmij.org Stop advertising in your commits! | AksDev GitHub - mplsllc/macsurf: A modern web browser for Classic Mac OS 9 PowerPC. Real CSS3, ES5 JavaScript, native HTTPS — built with CodeWarrior on the Carbon API. Introducing DoomBench - Can Your Data Stack Run DOOM? What are some of your favourite developer tools? Building a Scalable Ingestion Pipeline with Temporal (Part 1) Converting shallow Git bundles into normal repositories Are you a member of any professional associations? What is a harmonic? An interactive comic about additive synthesis How Virtual Tables Work in the Itanium C++ ABI Using SwiftUI to Build a Mac-assed App in 2026 Rust (and Slint) on a jailbroken Kindle. ~jack/lambda-on-lambda - Serverless Haskell on AWS - sourcehut git Human proof for FOSS contributions Extremely simple internet radio controlled via IRC Announcing BABLR Splitting Konsole views from Helix to run tools | AksDev GitHub - yugr/rust-slides Serving files over HTTP three ways: synchronous, epoll, and io_uring update docs with information about building with build.py (#979) · astral-sh/python-build-standalone@c9c40c5 A Simple Makefile Tutorial On C extensions, portability, and alternative compilers Switching to Colemak | Pedro Alves Just How Bad Was The Intel IAPX432? Nix's Substituter List Is Not a Routing Table Accelerating copy_if using SIMD Lambda on Lambda: Serverless Haskell on AWS | Blog Announcing feed-repeat v1.0 Scaling Akvorado BMP RIB with sharding EYG news: A host of CLI improvements, new guides and new effects The social contract of writing JS Crossword C array types are weird; and related topics Flatpak will depend on systemd – OSnews Migrating from Go to Rust | corrode Rust Consulting A portentous reunion Vivado Licensing Options How my minimal, memory-safe Go rsync steers clear of vulnerabilities the entropy layer of a wavelet codec, on its own GitHub - nferhat/fht-compositor: A dynamic tiling Wayland compositor. Debian SE Linux and PinTheft Does bulk memmove speed up std::remove_if? (No.) 声明式部分更新 | Blog | Chrome for Developers Fully in-browser container builds Dianne Skoll's Web Site - Remind The Architecture of Open Source Applications (Volume 1)Berkeley DB Pardon MIE? - ironPeak Blog “Long-Term Support” doesn’t mean what you think Jira IS Turing-Complete May I recommend thinking of Emacs as your Fortress of Solitude hershey Floodgap Gopher-HTTP gateway gopher://thelambdalab.xyz/1cuneiforth/ HP QuickWeb, Singular And Pointless That one time I used Go panics for flow control A new suite of modern tools coming for editing and publishing RFCs From the Tabletop… The Digital Antiquarian Building a Host-Tuned GCC to Make GCC Compile Faster Are we self-sovereign PKI yet? Claw Patrol: an open-source security firewall for agents | Deno Revised^7 Report on Scheme, Large: Procedural Fascicle Draft is now public A Network Allow-List Won't Stop Exfiltration — André Graf From AFSK to Goertzel – µArt.cz Software For My New Home Server Introducing Neptune: Direct3D virtualization for QEMU AI Agent Bankrupted Their Operator While Trying to Scan DN42 - Lan Tian @ Blog mimalloc: A new, high-performance, scalable memory allocator for the modern era Making wl_shm fast The Soul of Maintaining a New Machine - Third Draft | Books in Progress What is Git made of?
akashina.tngl.sh/jjc
Tangled · 2026-05-28 · via Lobsters

Non-interactive hunk-level operations for Jujutsu. Scriptable alternative to jj split's interactive mode.

Requires jj v0.41.0.

Install#

cargo install --git https://tangled.sh/akashina.tngl.sh/jjc  # or from local checkout:
cargo install --path .

Commands#

jjc hunks — list hunks#

jjc hunks                    # list all hunks in @
jjc hunks --from main        # list hunks in a specific revision
jjc hunks -r @-              # shorthand for --from
jjc hunks abc123             # inspect a single hunk (by ID or prefix)
jjc hunks --full             # include numbered diff lines
jjc hunks --blame            # annotate each line with originating commit

--from accepts any revset that resolves to one revision. Hunks are listed for that revision's diff against its parent, so jjc hunks --from @- shows the parent commit's own hunks rather than the working copy's hunks.

Default output shows a changed-lines preview (up to 4 lines):

a1b[2c3d4e5f6] src/main.rs (+3 -1)
  +    println!("new line");
  -    old_call();

f09[8a7b6c5d4e] src/lib.rs (+1 -0)
  +use std::io;

--full adds context lines with line numbers, and lists change atoms when a hunk has more than one:

a1b[2c3d4e5f6] src/main.rs (+3 -1)
  1: fn main() {
  2:+    println!("new line");
  3:-    old_call();
  4: }
  a1b[2c3d4e5f6]#1 @2 a1b[2c3d4e5f6]#2 @3

Hunk IDs use bracket-style prefix highlighting (same as jj log): a1b[2c3d4e5f6] means a1b is the shortest unique prefix.

jjc pick — split hunks into a new commit#

jjc pick a1b -m "extract logging"        # pick entire hunk
jjc pick a1b#2 -m "fix off-by-one"       # pick a single change atom
jjc pick a1b@15-20 -m "refactor"         # pick by target line range
jjc pick a1b c3d -r foo -m "partial"     # pick multiple hunks from revision foo

Creates a new commit with the selected hunks, then rewrites the source revision on top of it (like jj split but non-interactive).

jjc drop — revert hunks to parent content#

jjc drop a1b           # drop a hunk from @
jjc drop a1b c3d       # drop multiple hunks

Rewrites the revision in place with selected hunks reverted. Like "Revert Hunk" in a diff editor.

jjc fold — squash hunks into another revision#

jjc fold a1b --into main              # fold hunk from @ into main
jjc fold a1b -r feat --into main      # fold from a specific source
jjc fold --select feat:a1b,c3d        # multi-source with explicit assignment

Hunk selectors#

All write commands (pick, drop, fold) accept hunk selectors:

Form Meaning
a1b Entire hunk matching ID prefix a1b
a1b#2 Change atom #2 within the hunk
a1b@15 Lines covering target line 15
a1b@10-20 Lines covering target range 10-20

Use jjc hunks to discover IDs and atom indices.

How it works#

jjc reads the jj repository directly via jj-lib. It loads your jj config (user, repo, workspace layers), snapshots the working copy, and commits transactions with proper descendant rebasing and working copy updates. No jj commands are shelled out or proxied.

Limitations#

  • Only text file hunks are supported. Binary files, renames, copies, additions, and deletions are listed as unsupported.
  • Immutable commit checking is minimal (root commit only). Use jj log to verify before rewriting shared history.