mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 23:36:11 +00:00
feat(cli): list linked worktrees after grove add
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
39ab3cde1a
commit
d1c0ddb5dc
1 file changed
+13
@@ -305,6 +305,19 @@ fn main() -> Result<()> {
|
|||||||
r.backup_tar.display(),
|
r.backup_tar.display(),
|
||||||
r.backup_ref
|
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");
|
println!("note: shells whose cwd was inside the old checkout must `cd` again");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user