fix: 保留 apply-patch CRLF 完整性

This commit is contained in:
Codex
2026-07-10 15:03:56 +02:00
parent fe7b0bf290
commit 760a92ee11
5 changed files with 246 additions and 4 deletions
+2
View File
@@ -208,6 +208,8 @@ describe("ssh host apply-patch fs backend", () => {
originalSha256: sha256Hex(text),
finalBytes: Buffer.byteLength("alpha\nnew\nomega\n", "utf8"),
finalSha256: sha256Hex("alpha\nnew\nomega\n"),
newlineStyle: "lf",
encodingStyle: "utf8",
replacements: [[1, 1, ["new"]]],
},
]]));