spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / scripted / long-line-of.ts
9 lines · 272 BRaw
1/**
2 * A file's unified diff after its opening line: one hunk of one added line
3 * that many characters long.
4 *
5 * @param length how long the added line is
6 * @returns the body
7 */
8export const longLineOf = (length: number) =>
9 `@@ -0,0 +1 @@\n+${'x'.repeat(length)}\n`