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.
Jujutsu
Section titled “Jujutsu”hunk diffhunk 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.
Sapling
Section titled “Sapling”hunk diffhunk diff .^hunk show .Configure pager output with sl config -u:
[pager]pager = hunk pagerOverride detection
Section titled “Override detection”Set the backend in Hunk config when a checkout is ambiguous:
vcs = "jj" # git, jj, or slJujutsu 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.