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.
TypeScript
/**
* One changed file's record as `git diff --raw -z` prints it: the modes,
* the object names and the status, then the path, each NUL-ended.
*
* @param path the path as git holds it
* @returns the record
*/
export const rawRecordOf = (path: string) =>
`:100644 100644 5626abf 0000000 M\0${path}\0`