Repository navigation
Commit 2c9b9a9
review
I didn't try to fix all the issues with this, let's just make it a little bit
better hoping the code won't be around much longer.
<!-- agent -->
# Known limitations
Commit.encoding still conflates the declared encoding with the codec used for
best-effort decoding. Unsupported or malformed declarations leave the default
encoding—or an earlier accepted declaration—in place, so the resulting attribute
does not faithfully represent the commit’s original metadata. The rejected
header bytes appear in the diagnostic but are not retained on the object.
Fallback decoding with "replace" can irreversibly alter identity and
message content. Reserializing such a commit can therefore change both its
encoding declaration and its content; this change does not provide lossless
round-tripping. Codec validation also checks only that Python accepts the codec,
not that it can decode the actual commit content.
Assisted-by: GPT 6.1 Sol
Co-authored-by: GPT 6.1 Sol <codex@openai.com>1 parent b145459 commit 2c9b9a9
2 files changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
902 | 904 | | |
903 | 905 | | |
904 | 906 | | |
905 | | - | |
906 | | - | |
907 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
908 | 910 | | |
909 | 911 | | |
910 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
496 | 516 | | |
497 | 517 | | |
498 | 518 | | |
| |||
0 commit comments