dotfiles

andersuno
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit d5527ad8475a9f1d5057dba8fc4caa9329052e0f
parent 96b2247f448b06169afc0f4091aae430196e8f88
Author: Anders Hedman <anders.hedman01@gmail.com>
Date:   Sat,  7 Nov 2026 23:02:45 +0100

chore(opencode): allow git fetch without asking

git fetch is read-only for the working tree (it only updates
remote-tracking refs and objects), so the ask prompt was friction
without safety value. Destructive .git writers like reset, checkout,
and clean still require approval.

Diffstat:
M.config/opencode/opencode.jsonc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/opencode/opencode.jsonc b/.config/opencode/opencode.jsonc @@ -163,7 +163,7 @@ { "action": "shell", "resource": "git commit*", "effect": "ask" }, { "action": "shell", "resource": "git push*", "effect": "ask" }, // network + writes .git - { "action": "shell", "resource": "git fetch*", "effect": "ask" }, + { "action": "shell", "resource": "git fetch*", "effect": "allow" }, { "action": "shell", "resource": "git reset*", "effect": "ask" }, { "action": "shell", "resource": "git checkout*", "effect": "ask" }, { "action": "shell", "resource": "git clean*", "effect": "ask" },