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 / raw-record-of.ts
9 lines · 308 BRaw
1/**
2 * One changed file's record as `git diff --raw -z` prints it: the modes,
3 * the object names and the status, then the path, each NUL-ended.
4 *
5 * @param path the path as git holds it
6 * @returns the record
7 */
8export const rawRecordOf = (path: string) =>
9 `:100644 100644 5626abf 0000000 M\0${path}\0`