Files
claude-code/mods/diff/hooks/git/argv/diff-leading-args.ts
T
Alice T'Poteat dec92bc87a mods: revert two changes (agents-md truncated reads, diff forced colors) (#98018)
* Revert "agents-md: the truncated-read tests laid out as the formatter lays them"

* Revert "fix(agents-md): retain instructions after truncated reads"

* Revert "diff: the shared diff arguments' doc says what --no-color pins"

* Revert "fix(diff): preserve hunks when Git forces colored output"
2026-09-28 17:05:53 -07:00

21 lines
621 B
TypeScript

/**
* The leading argv of every `git diff` the plugin runs: the config the
* engine's own diff panel pins, `core.quotePath=false`, and raw-blob flags.
*
* Root-relative paths whatever `diff.relative` says, non-ASCII paths as
* their own bytes, no optional locks, no child `git status` in a dirty
* submodule, and no external diff or textconv driver even on a stats pass.
*/
export const DIFF_LEADING_ARGS = [
'--no-optional-locks',
'-c',
'diff.relative=false',
'-c',
'core.quotePath=false',
'diff',
'--no-ext-diff',
'--no-textconv',
'--ignore-submodules=dirty',
'--submodule=short',
] as const