- Git C-style quoting octal-escapes raw UTF-8 bytes; decoding each escape
with String.fromCharCode produced mojibake, so attribution lookups missed
quoted non-ASCII paths and their sections were never filtered (macroscope,
bugbot). stripGitPathQuoting now decodes into a byte buffer and UTF-8
decodes the result.
- gitFileCount counted every git-attributed path in the attribution map,
overstating hidden files when a path had no section in the patch (e.g.
whitespace-only changes elided by ignoreWhitespace) and double-counting
renames from the --no-renames map (macroscope, bugbot). It now counts
git-attributed sections actually present in the patch, so the banner
matches what the toggle can reveal.
Co-Authored-By: Claude Fable 5 <[email protected]>