hunkdiff 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -59,15 +59,7 @@ hunk show HEAD~1 # review an earlier commit
59
59
 
60
60
  ### Working with Jujutsu
61
61
 
62
- Set `vcs = "jj"` in config to use the same `hunk diff [revset]` and `hunk show [revset]` commands with Jujutsu revsets instead. When `vcs` is unset, Hunk uses Git.
63
-
64
- To use hunk as jj's pager, run `jj config edit --user` and update:
65
-
66
- ```toml
67
- [ui]
68
- pager = ["hunk", "pager"]
69
- diff-formatter = ":git"
70
- ```
62
+ Hunk auto-detects Jujutsu checkouts, so `hunk diff [revset]` and `hunk show [revset]` use jj revsets inside a jj workspace. To override VCS detection, set `vcs = "git"` or `vcs = "jj"` in [config](#config).
71
63
 
72
64
  ### Working with raw files and patches
73
65
 
@@ -158,6 +150,16 @@ git config --global alias.hdiff "-c core.pager=\"hunk pager\" diff"
158
150
  git config --global alias.hshow "-c core.pager=\"hunk pager\" show"
159
151
  ```
160
152
 
153
+ ### Jujutsu pager integration
154
+
155
+ To use Hunk as jj's pager, run `jj config edit --user` and update:
156
+
157
+ ```toml
158
+ [ui]
159
+ pager = ["hunk", "pager"]
160
+ diff-formatter = ":git"
161
+ ```
162
+
161
163
  ### OpenTUI component
162
164
 
163
165
  Hunk also publishes `HunkDiffView` from `hunkdiff/opentui` for embedding the same diff renderer in your own OpenTUI app.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunkdiff",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
5
5
  "bin": {
6
6
  "hunk": "./bin/hunk.cjs"
@@ -31,10 +31,10 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "optionalDependencies": {
34
- "hunkdiff-darwin-arm64": "0.11.0",
35
- "hunkdiff-darwin-x64": "0.11.0",
36
- "hunkdiff-linux-arm64": "0.11.0",
37
- "hunkdiff-linux-x64": "0.11.0"
34
+ "hunkdiff-darwin-arm64": "0.11.1",
35
+ "hunkdiff-darwin-x64": "0.11.1",
36
+ "hunkdiff-linux-arm64": "0.11.1",
37
+ "hunkdiff-linux-x64": "0.11.1"
38
38
  },
39
39
  "license": "MIT",
40
40
  "publishConfig": {