You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude-plugin/skills/revdiff/references/usage.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,10 +143,15 @@ consider splitting this file into smaller modules
143
143
## handler.go:43 (+)
144
144
use errors.Is() instead of direct comparison
145
145
146
+
## handler.go:43-67 (+)
147
+
refactor this hunk to reduce nesting
148
+
146
149
## store.go:18 (-)
147
150
don't remove this validation
148
151
```
149
152
150
153
Each annotation block: `## filename:line (type)` where type is `(+)` added, `(-)` removed, or `(file-level)`.
151
154
155
+
When annotation text contains keywords "hunk" or "block" (case-insensitive, whole word), the output header automatically expands to include the full hunk line range (e.g., `handler.go:43-67 (+)` instead of `handler.go:43 (+)`). This gives AI consumers the range context without any extra steps.
156
+
152
157
Use `--output` / `-o` flag to write annotations to a file instead of stdout.
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -499,10 +499,15 @@ consider splitting this file into smaller modules
499
499
## handler.go:43 (+)
500
500
use errors.Is() instead of direct comparison
501
501
502
+
## handler.go:43-67 (+)
503
+
refactor this hunk to reduce nesting
504
+
502
505
## store.go:18 (-)
503
506
don't remove this validation
504
507
```
505
508
509
+
When annotation text contains keywords "hunk" or "block" (case-insensitive, whole word), the output header automatically expands to include the full hunk line range (e.g., `handler.go:43-67 (+)` instead of `handler.go:43 (+)`). This gives AI consumers the range context without any extra steps.
510
+
506
511
## Contributing
507
512
508
513
See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
<p>Each annotation block: <code>## filename:line (type)</code> where type is <code>(+)</code> added, <code>(-)</code> removed, or <code>(file-level)</code>.</p>
440
+
<p>When annotation text contains keywords “hunk” or “block” (case-insensitive, whole word), the output header automatically expands to include the full hunk line range (e.g., <code>handler.go:43-67 (+)</code> instead of <code>handler.go:43 (+)</code>). This gives AI consumers the range context without any extra steps.</p>
437
441
438
442
<h2id="integration">Integration with other tools</h2>
439
443
<p>The structured stdout output works with any tool that can read text:</p>
0 commit comments