fix(core): protect ignored files and fix backup ref namespaces

Archive no longer deletes worktrees holding ignored files, fast-forward and
snapshot apply decline instead of overwriting ignored files, backup refs use
per-kind namespaces, add refuses sparse checkouts. Regression tests and docs
updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 12:12:46 +01:00
1 parent 938604193e
commit 126acb4b57
6 files changed
+277 -20

No files matched your search

+4 -2
View File
@@ -153,8 +153,10 @@ fn print_report(rep: &SyncReport) -> Result<()> {
if let Some(s) = w.snapshot {
notes.push(format!("snapshot {s}"));
}
if let Some(Received::FastForwarded { .. }) = &w.received {
notes.push("fast-forwarded".into());
match &w.received {
Some(Received::FastForwarded { .. }) => notes.push("fast-forwarded".into()),
Some(Received::Declined(why)) => notes.push(format!("not fast-forwarded: {why}")),
_ => {}
}
if let Some((m, a)) = &w.applied {
match a {