mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 07:16:11 +00:00
The daemon asks the forge (GitHub, Gitea/Forgejo) which pull requests were merged and removes the local worktree and branch of each merged head that holds no local work. Squash/rebase merges and head branches kept on the forge are covered; regenerable ignored output (target/, node_modules...) does not keep a worktree, any other ignored file does. The tip is kept in a refs/sync-backup/<machine>/<stamp>/merged/<branch> ref, and materialize no longer brings a pruned branch back unless it gets new commits. New config: sync.prune_merged (default true) and sync.prune_disposable. See docs/prune-merged.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011GZUAKXXztS4Hy4F4sSRkc
1.8 KiB
1.8 KiB
Decisions
- Custom refs on Gitea/Forgejo: supported on Forgejo 11, no fallback needed (see
phase0-spike.md). Also confirmed on git.zenvairo.es (Gitea 1.25.4); mirror exclusion still to verify there. - Snapshots are auto-applied only when the target worktree is clean, has no unpushed commits and HEAD can fast-forward to the snapshot's base; otherwise declined and reported (implemented in
receive::apply_snapshot). - Config: TOML for user intent (implemented); runtime state storage still open.
- License: MIT (decided).
- Final name: Grove (decided; binary
grove, cratesgrove-coreandgrove). - Open:
grovedunder systemd getsPATH=/usr/local/bin:/usr/bin:/bin, so atea/ghin~/.local/binis not found and the token lookup fails. Options: shipEnvironment=PATH=%h/.local/bin:...incontrib/groved.service, or resolve the helpers by absolute path (~/.local/bin, thenPATH). Workaround in use: a user drop-in (seetwo-pc-run.md). - Open:
grove addrefusesextensions.worktreeConfig = trueeven when noconfig.worktreeexists. Claude Code worktrees leave that flag behind. Options: accept it when no per-worktree config file exists (and sparse checkout is off), or keep refusing and print the exactgit config --unsethint. - Merged worktrees are pruned (
prune-merged.md), but the PR's head branch is left on the forge and this machine'srefs/sync/<machine>/<branch>snapshot ref stays there too. Open: should grove delete either once the PR is merged (the forge's "delete branch after merge" covers the first)? - Open: a branch recreated under the name of a fast-forward-merged PR before the default branch moves has the PR head as tip and is pruned at once if clean (nothing is lost; a backup ref is kept). Options: accept it, or require the worktree to be older than the merge.