Download mods/diff/tests/fixtures/edit-patch-of.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/tests/fixtures/edit-patch-of.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/tests/fixtures/edit-patch-of.ts
-
curl -L -o edit-patch-of.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/tests/fixtures/edit-patch-of.ts
351 Bytes
| /** | |
| * An Edit tool's result record holding one hunk of one file. | |
| * | |
| * @param lines the hunk's lines, `-`/`+`/space prefixed | |
| * @returns the record as the transcript stores it | |
| */ | |
| export const editPatchOf = (lines: string[]) => ({ | |
| filePath: '/r/a.ts', | |
| structuredPatch: [ | |
| { oldStart: 1, oldLines: 1, newStart: 1, newLines: 1, lines }, | |
| ], | |
| }) | |