Commit f7997dc
test(advocates): apply PR #87 review feedback (gemini)
- Fix broken `diff` hint at line 109 (was syntactically invalid: a
single process substitution given to `diff`, which requires two
operands and would fail with `diff: missing operand`).
- Add `--normalize FILE` debug subcommand that emits the canonicalized
stream for one advocate file to stdout. Two invocations can be paired
through `diff` to pinpoint the exact line(s) that drift, which is
the actually-useful diagnostic the previous hint failed to provide.
- Reword the failure-path hint to point users at the new `--normalize`
flag with a copy-pasteable two-operand `diff <(...) <(...)` template.
- Update header `Usage:` block + exit-code table to document the new
subcommand.
Verified: bash tests/test-advocate-boilerplate.sh PASSes (26→1 hash);
bash scripts/verify-plugin.sh reports 57/0; `--normalize` against any
two advocate files produces an empty `diff` (exit 0) on a clean tree.
Refs PR #87 review comments
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a15cd6b commit f7997dc
1 file changed
Lines changed: 43 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
96 | 118 | | |
97 | 119 | | |
98 | 120 | | |
| |||
106 | 128 | | |
107 | 129 | | |
108 | 130 | | |
109 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
110 | 140 | | |
111 | 141 | | |
112 | 142 | | |
| |||
0 commit comments