# Hunk for Sapling

> Review Sapling working copies and commits in Hunk with native revsets, pager integration, multi-file navigation, and untracked-file support.

Hunk detects Sapling repositories and accepts Sapling's own revision syntax. It turns working-copy and committed changes into a multi-file terminal review with fast navigation, split or stack layouts, expandable context, and inline agent notes.

## Start reviewing

```bash
hunk diff
hunk diff .^
hunk show .
```

## Review tracked and unknown files

`hunk diff` includes Sapling working-copy changes and unknown files by default. Add `--exclude-untracked` when the review should contain tracked files only.

## Use Sapling revisions

Pass native targets such as `.^` and `.` directly to `hunk diff` or `hunk show`. Hunk sends them to the detected Sapling backend rather than treating them as Git refs.

## Open pager output in Hunk

Set Sapling's pager to `hunk pager` to route patch-like command output into the review UI. Non-diff output continues through Hunk's plain-text fallback.

## Use Hunk as the Sapling pager

```text
# sl config -u
[pager]
pager = hunk pager
```

## What to know

Sapling has no Git staging-area or stash commands in Hunk. Its watch mode currently polls rather than observing repository files directly.

[Read the complete Sapling workflow documentation](https://hunk.dev/docs/workflows/jujutsu-and-sapling/)

[Install Hunk](https://hunk.dev/#install)
