feat: resolve diverged worktrees, status --plan, snapshot size limit

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 13:25:22 +01:00
1 parent b86342b1d0
commit 398b959ffe
13 files changed
+443 -17

No files matched your search

+8 -2
View File
@@ -379,8 +379,14 @@ fn pass(
let branch = w.branch.clone().unwrap_or_else(|| "(detached)".into());
let state = format!("{:?}", w.state).to_lowercase();
if let Some(kind) = w.snapshot {
ctx.activity
.log("snapshot", Some(&name), format!("{branch}: {kind}"));
let mut msg = format!("{branch}: {kind}");
if !w.skipped.is_empty() {
msg.push_str(&format!(
" (left out, over the size limit: {})",
w.skipped.join(", ")
));
}
ctx.activity.log("snapshot", Some(&name), msg);
}
match &w.received {
Some(Received::FastForwarded { .. }) => {
+1
View File
@@ -22,6 +22,7 @@ fn main() -> Result<()> {
.or_else(Config::default_path)
.context("cannot determine config path")?;
let cfg = Config::load(&path)?;
grove_core::snapshot::set_max_file_bytes(cfg.sync.max_file_mb * 1024 * 1024);
let st = Settings::standard();
eprintln!(
"groved: machine {:?}, root {}, socket {}",