feat(cli): list linked worktrees after grove add

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 17:08:52 +01:00
1 parent 39ab3cde1a
commit d1c0ddb5dc
1 file changed
+13
+13
View File
@@ -305,6 +305,19 @@ fn main() -> Result<()> {
r.backup_tar.display(),
r.backup_ref
);
for b in &r.linked_backups {
println!("backup: {} (linked worktree)", b.display());
}
if !r.linked.is_empty() {
println!("linked worktrees kept:");
for l in &r.linked {
println!(
" {} ({})",
l.path.display(),
l.branch.as_deref().unwrap_or("detached")
);
}
}
println!("note: shells whose cwd was inside the old checkout must `cd` again");
Ok(())
}