Files
Grove/crates/grove-daemon/src/lib.rs
T
Claude e9ac627863 feat(daemon): prune worktrees merged through a pull request
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
2026-11-16 21:41:56 +00:00

18 lines
505 B
Rust

//! grove user daemon: watches managed repos, debounces changes, runs sync passes on a schedule
//! and serves a small JSON protocol over a Unix socket. All durable state lives in git; the
//! daemon itself holds nothing that a crash could lose.
pub mod activity;
pub mod daemon;
pub mod discover;
pub mod ipc;
pub mod merged;
pub mod purge;
#[cfg(test)]
#[path = "../../../test-support/tmp.rs"]
mod test_tmp;
pub mod visibility;
pub use activity::{Activity, Event};
pub use daemon::{Daemon, Settings};