You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
The hooks README records the decision for each command that #1255 reported: which forms are accepted (named corpus scripts, staging a named corpus file, quoted search patterns) and which stay refused on purpose (extra git diff flags, heredocs that write a file mentioning a protected path, dotnet test filters ending in a wildcard), with a workaround for each refused form (#1255)
The hooks README lists the guard's configuration-dependent limits: inherited RIPGREP_CONFIG_PATH and GIT_EXTERNAL_DIFF, and Git clean filters run by git add (#1255)
Fixed
The shell-write guard accepts read-only rg searches that use context (-A, -B, -C), match limits (-m), file types (-t, -T) or the -S, -o, -s, -I, -N flags when the command also carries --no-config, so searches with glob-like patterns such as ]* are no longer refused. --hidden, --no-ignore, --pre, -z, -f and other options stay refused (#1255)