Status and staging
Staged, unstaged, untracked and conflicted files, with hunk-level and line-level staging.

The four groups
Work mode (⌘2) reads status from git status --porcelain=v2 --branch --untracked-files=all -z, run with optional locks disabled so a status refresh never competes for .git/index.lock with a mutation of your own. Per-path line counts are merged in from git diff --numstat and git diff --cached --numstat.
The result keeps the distinctions Git makes rather than flattening them: staged, unstaged, untracked and conflicted are four separate groups, not one list with icons. Renames arrive as renames. Stashes, worktrees, submodules and the in-progress sequencer marker are composed onto the same status object, which is why the merge you left half-finished is visible from the staging panel and not only from the terminal.
Whole-file staging
Selecting files and staging them runs the plain commands, and the plan says so before it runs. This is safe work, so nothing is captured first and no checkpoint is offered afterwards.
# stagegit add -- src/editor/autosave.ts# unstagegit reset -q HEAD -- src/editor/autosave.ts
Hunk and line staging
Each hunk carries its own control in its own header, and lines inside a hunk can be selected and staged as exactly that selection.


The interface never sends a patch. It sends hunk ids, line indexes, and a short-lived state token that describes the diff you were looking at. The core re-reads the real diff, compares the token, regenerates the patch itself, and runs Git’s own --check pass before applying anything. If the file changed under you between review and confirmation, the token no longer matches and the operation is refused with a message telling you to refresh the diff. It does not stage a guess.
stage git apply --cached --unidiff-zero
unstage git apply --cached --reverse --unidiff-zero
discard git apply --reverse --unidiff-zeroSuccess is checked, not assumed: a partial mutation must change the state token it started from, or the operation does not report success.
Where partial staging stops
Ordinary text modifications only
A partial change is available for a modified text file. Added, deleted, renamed and metadata-only paths take the whole-file action instead, as do binary files, images, and files the diff reader marked too large. The app says which case you are in rather than offering a control that would fail.
One to 256 selections, and a 1 MiB patch
A single partial operation carries between one and 256 hunk selections, and the regenerated patch is capped at 1 MiB. Past that, use the whole-file action.
Discard is not staging
Discard is available at the same granularities (file, hunk, selected lines) and it is classified as what it is.
| Operation | Risk | Captured first |
|---|---|---|
| Stage / unstage | safe | Nothing |
| Stage / unstage a selection | safe | Nothing |
| Discard | destructive | Standard capsule, untracked files included |
The discarded content lives in the capsule’s patches, so the rollback step in the plan is real: re-apply the discarded changes from the checkpoint patch.
The diff itself
Unified or side-by-side, per-hunk actions, line selection, a whitespace menu and a copy menu, and explicit states for binary, image, too-large and empty files rather than an attempt to render four megabytes of minified JavaScript. External diff tools are never launched: diff.tool is not consulted, in any mode.