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 / hooks / git / argv / hunks-args / hunks-args.ts
17 lines · 587 BRaw
1/**
2 * What the hunks read adds to the shared diff argv: the listed names and
3 * every file's patch from one child, each file as it reads when asked alone.
4 *
5 * `--raw -z` heads the answer with the names as git holds them, NUL-ended
6 * and never quoted; no rename is paired among the paths asked together, as
7 * none can be for one path; the header's `a/` and `b/` hold whatever a
8 * person's `diff.noprefix`, `diff.mnemonicPrefix` or prefixes are set to.
9 */
10export const HUNKS_ARGS = [
11 '--no-renames',
12 '--src-prefix=a/',
13 '--dst-prefix=b/',
14 '--raw',
15 '-z',
16 '-p',
17] as const