mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 15:26:09 +00:00
feat: resolve diverged worktrees, status --plan, snapshot size limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b86342b1d0
commit
398b959ffe
13 files changed
+443
-17
No files matched your search
@@ -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 { .. }) => {
|
||||
|
||||
@@ -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 {}",
|
||||
|
||||
Reference in new issue
Block a user