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 / one-added-of.ts
8 lines · 260 BRaw
1/**
2 * A file's unified diff after its opening line: one hunk, a line of context
3 * and one added line.
4 *
5 * @param text the added line, without its marker
6 * @returns the body
7 */
8export const oneAddedOf = (text: string) => `@@ -1 +1,2 @@\n one\n+${text}\n`