Overview
| Artifact ID: | 2e3f4b5ba0066e7f6c6d688f479a0d217fc53263098983a7fd82cfdd4650c8d5 |
|---|---|
| Page Name: | index |
| Date: | 2026-10-13 01:47:31 |
| Original User: | dmestas |
| Mimetype: | text/x-markdown |
Content
hunk-fossil
Fossil and zit
backends for hunk, the terminal diff
viewer. Hunk ships with Git, Jujutsu and Sapling support; this extension adds
the same hunk diff and hunk show inside a fossil or zit checkout.
Install
hunk extension install danmestas/hunk-fossil
Needs hunk 0.18 or later, and fossil or zit on your PATH.
Use
Inside a checkout:
hunk diff # the checkout's changes, plus untracked files
hunk diff VERSION # VERSION against the checkout
hunk diff A..B # check-in A against check-in B
hunk show [VERSION] # what VERSION changed (default: the current check-in)
VERSION is any name the VCS accepts: a hash prefix, a tag, a branch, trunk~5.
Untracked files come from fossil extras or zit extras; --exclude-untracked
leaves them out.
A fossil checkout is recognized by .fslckout or _FOSSIL_, a zit checkout by
.zit-checkout, in the current directory or any parent.
Without installing
Any fossil or zit diff can also be piped in:
fossil diff | hunk patch -
zit diff | hunk patch -
Limits
--stagedis refused: neither fossil nor zit has a staging area.hunk stash showis not supported.
License
BSD 2-Clause. See LICENSE.
Clone
fossil clone https://fossil.craftdesign.group/hunk-fossil/ hunk-fossil.fossil