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
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ Review and approve hook commands defined in the repository's `.gtrconfig` file.
348
348
git gtr trust # Review and approve .gtrconfig hooks
349
349
```
350
350
351
-
Trust is stored per content hash and must be re-approved if hooks change. Hooks from your local git config (`.git/config`, `~/.gitconfig`) are always trusted.
351
+
Trust is stored per repository path plus hook definitions and must be re-approved if hooks change. Hooks from your local git config (`.git/config`, `~/.gitconfig`) are always trusted.
352
352
353
353
### Other Commands
354
354
@@ -369,6 +369,14 @@ git gtr config set gtr.editor.default cursor
369
369
# Set your AI tool (aider, auggie, claude, codex, continue, copilot, cursor, gemini, opencode)
370
370
git gtr config set gtr.ai.default claude
371
371
372
+
# Override-backed adapters may include flags
373
+
git gtr config set gtr.editor.default "nano -w"
374
+
git gtr config set gtr.ai.default "claude --continue"
375
+
376
+
# Generic fallbacks may use other safe PATH commands
377
+
git gtr config set gtr.editor.default "code --wait"
378
+
git gtr config set gtr.ai.default "bunx @github/copilot@latest"
@@ -402,6 +410,8 @@ git gtr config set gtr.ui.color never
402
410
403
411
**Hook trust:** Hooks defined in `.gtrconfig` require explicit approval before they execute. Run `git gtr trust` after cloning a repository or when `.gtrconfig` hooks change. This protects against malicious hook injection in shared repositories.
404
412
413
+
**Adapter safety:** Generic `gtr.editor.default` and `gtr.ai.default` values must resolve to safe PATH commands. Filesystem paths such as `./tool` and shell wrapper forms such as `sh -c ...` are rejected. Override-backed adapters like `claude`, `cursor`, and `nano` may include additional flags, for example `claude --continue` or `nano -w`.
414
+
405
415
**Configuration precedence** (highest to lowest):
406
416
407
417
1. `git config --local` (`.git/config`) - personal overrides
0 commit comments