You'll notice
The restricted git wrapper now parses -C and --work-tree flags and fully handles git grep.
The sandboxed git command allowlist now parses -C, --work-tree, and --work-tree= flags before the subcommand and resolves relative paths against that worktree. It also adds a full handler for git grep, alongside the existing expanded handling for git diff. This applies to everyone using the restricted git wrapper.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Fixed Bash Read() deny rules not covering files given as option values (--ignore-revs-file=.env, -f.env, @file), git diff/git grep file…