{"version":"2.1.282","anchor":"fixed-git-diff-formatting-flags-for-an-internal-diff-call","canonical_anchor":"fixed-git-diff-formatting-flags-for-an-internal-diff-call","heading":"An internal git diff now ignores your personal diff settings","tier":"internal","area":"Git","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/fixed-git-diff-formatting-flags-for-an-internal-diff-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### An internal git diff now ignores your personal diff settings\n\nOne of Claude Code's own `git diff` calls now always sets colour, path prefixes and submodule display, so your Git settings cannot change it\n\n**Unclear.** It is not clear which feature uses this diff, or which of these options it already passed before.\n\n**What**\n\nOne `git diff` command that Claude Code runs for its own use now always passes these options:\n\n- `--no-color`\n\n- `--src-prefix=a\/`\n\n- `--dst-prefix=b\/`\n\n- `--submodule=short`\n\nYour own Git settings for colour, file path prefixes or how submodules are shown therefore cannot change what this command outputs.\n\n**Why**\n\nIn practice, Claude Code gets the same diff format whatever your Git settings are, which may fix diffs being read wrongly for people with customised settings.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}