Skip to content

Jujutsu and Sapling

Hunk detects Git, Jujutsu (jj), and Sapling (sl) repositories. hunk diff [target] and hunk show [target] pass native revsets to the detected backend.

Terminal window
hunk diff
hunk diff @-
hunk show @

Configure Hunk as jj's pager and request Git-format diffs:

[ui]
pager = ["hunk", "pager"]
diff-formatter = ":git"

Edit user settings with jj config edit --user.

Terminal window
hunk diff
hunk diff .^
hunk show .

Configure pager output with sl config -u:

[pager]
pager = hunk pager

Set the backend in Hunk config when a checkout is ambiguous:

vcs = "jj" # git, jj, or sl

Jujutsu and Sapling do not have Git's staging area, and stash review is Git-only. Their watch mode currently polls rather than observing repository files directly.