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 / diff-leading-args.ts
20 lines · 621 BRaw
1/**
2 * The leading argv of every `git diff` the plugin runs: the config the
3 * engine's own diff panel pins, `core.quotePath=false`, and raw-blob flags.
4 *
5 * Root-relative paths whatever `diff.relative` says, non-ASCII paths as
6 * their own bytes, no optional locks, no child `git status` in a dirty
7 * submodule, and no external diff or textconv driver even on a stats pass.
8 */
9export const DIFF_LEADING_ARGS = [
10 '--no-optional-locks',
11 '-c',
12 'diff.relative=false',
13 '-c',
14 'core.quotePath=false',
15 'diff',
16 '--no-ext-diff',
17 '--no-textconv',
18 '--ignore-submodules=dirty',
19 '--submodule=short',
20] as const