hunkdiff 0.7.0 → 0.8.0
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.
- package/README.md +13 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -51,11 +51,12 @@ hunk --version # print the installed version
|
|
|
51
51
|
Hunk mirrors Git's diff-style commands, but opens the changeset in a review UI instead of plain text.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
hunk diff
|
|
54
|
+
hunk diff # review current repo changes, including untracked files
|
|
55
|
+
hunk diff --exclude-untracked # limit working tree review to tracked files only
|
|
55
56
|
hunk diff --staged
|
|
56
|
-
hunk diff --watch
|
|
57
|
-
hunk show
|
|
58
|
-
hunk show HEAD~1
|
|
57
|
+
hunk diff --watch # auto-reload as the working tree changes
|
|
58
|
+
hunk show # review the latest commit
|
|
59
|
+
hunk show HEAD~1 # review an earlier commit
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
### Working with raw files and patches
|
|
@@ -100,17 +101,23 @@ You can persist preferences to a config file:
|
|
|
100
101
|
Example:
|
|
101
102
|
|
|
102
103
|
```toml
|
|
103
|
-
theme = "graphite"
|
|
104
|
-
mode = "auto"
|
|
104
|
+
theme = "graphite" # graphite, midnight, paper, ember
|
|
105
|
+
mode = "auto" # auto, split, stack
|
|
106
|
+
exclude_untracked = false
|
|
105
107
|
line_numbers = true
|
|
106
108
|
wrap_lines = false
|
|
107
109
|
agent_notes = false
|
|
108
110
|
```
|
|
109
111
|
|
|
112
|
+
`exclude_untracked` affects working-tree `hunk diff` sessions only.
|
|
113
|
+
|
|
110
114
|
### Git integration
|
|
111
115
|
|
|
112
116
|
Set Hunk as your Git pager so `git diff` and `git show` open in Hunk automatically:
|
|
113
117
|
|
|
118
|
+
> [!NOTE]
|
|
119
|
+
> Untracked files are auto-included only for Hunk's own `hunk diff` working-tree loader. If you open `git diff` through `hunk pager`, Git still decides the patch contents, so untracked files will not appear there.
|
|
120
|
+
|
|
114
121
|
```bash
|
|
115
122
|
git config --global core.pager "hunk pager"
|
|
116
123
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hunkdiff",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hunk": "./bin/hunk.cjs"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"hunkdiff-darwin-arm64": "0.
|
|
34
|
-
"hunkdiff-darwin-x64": "0.
|
|
35
|
-
"hunkdiff-linux-arm64": "0.
|
|
36
|
-
"hunkdiff-linux-x64": "0.
|
|
33
|
+
"hunkdiff-darwin-arm64": "0.8.0",
|
|
34
|
+
"hunkdiff-darwin-x64": "0.8.0",
|
|
35
|
+
"hunkdiff-linux-arm64": "0.8.0",
|
|
36
|
+
"hunkdiff-linux-x64": "0.8.0"
|
|
37
37
|
},
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"publishConfig": {
|