Skip to content

Commit dc2c2dc

Browse files
committed
claude(settings): add permission for git diff with GIT_PAGER
Add 'Bash(GIT_PAGER=cat git diff:*)' to the allow list to enable git diff with GIT_PAGER environment variable set to 'cat'. This helps prevent git diff from using pagers that may interfere with the output format.
1 parent a0bef3a commit dc2c2dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"Bash(xcbeautify:*)",
4141
"Bash(pgrep:*)",
4242
"Bash(git show:*)",
43-
"Bash(printf:*)"
43+
"Bash(printf:*)",
44+
"Bash(GIT_PAGER=cat git diff:*)"
4445
],
4546
"deny": [
4647
"Bash(git add:*)",

0 commit comments

Comments
 (0)