This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Commit 7122cd1
fix(git_ops): correct byte counting in batch content parsing
Use UTF-8 encoding for accurate byte counting when parsing git cat-file
--batch output. The previous implementation used len(str) which counts
characters, not bytes, causing incorrect content boundary detection for
multi-byte UTF-8 characters.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 39c13b5 commit 7122cd1
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
428 | 431 | | |
429 | | - | |
| 432 | + | |
430 | 433 | | |
431 | | - | |
| 434 | + | |
432 | 435 | | |
433 | | - | |
434 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
435 | 446 | | |
436 | 447 | | |
437 | 448 | | |
| |||
0 commit comments