{"version":"2.1.329","anchor":"git-diff-allows-ignore-submodules-and-submodule","canonical_anchor":"git-diff-allows-ignore-submodules-and-submodule","heading":"git diff with submodule options is now recognised as read-only","tier":"notice","area":"Permissions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/git-diff-allows-ignore-submodules-and-submodule","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### `git diff` with submodule options is now recognised as read-only\n\nClaude Code now recognises `--ignore-submodules` and `--submodule` on `git diff` when checking whether a command only reads\n\n**What**\n\nBefore running some commands, Claude Code checks whether they only read files and change nothing. That check decides whether it needs to ask your permission first. Its list of known `git diff` options now includes `--ignore-submodules` and `--submodule`, both of which take a value. A submodule is a separate git repository kept inside another one.\n\n**Why**\n\nA `git diff` that uses either option no longer needs a permission prompt just because Claude Code did not recognise the option.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}