Commit ae15cb6
fix(bin): case sensitivity in file path handling for git operations (#75)
* fix: preserve original file path case for git show in diff-changes
`git show` on Linux is case-sensitive, so passing a lowercased path
(e.g. `input_schema.json`) fails when the actual file in git is
`INPUT_SCHEMA.json`. This fix keeps both the lowercased path (for
actor name matching and `.endsWith()` checks) and the original
case-preserved path (for the `git show` call in
`isCosmeticOnlyJsonSchemaChange`).
https://claude.ai/code/session_01NHgddik3UA7sDUi12hBUud
* refactor: move toLowerCase into classifyFileChange
Callers no longer need to pre-compute lowercaseFilePath; the function
owns the case-folding for matching while still using the original path
for git show.
https://claude.ai/code/session_01NHgddik3UA7sDUi12hBUud
* docs: comment that isCosmeticOnlyJsonSchemaChange requires case-sensitive path
https://claude.ai/code/session_01NHgddik3UA7sDUi12hBUud
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7ce374c commit ae15cb6
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments