Expand description
The shared process-side discipline of local-resource cleanup.
rk branches prune and rk worktree prune retire the same resource
pair — a branch, and the worktree that seats one — so the deletion
discipline has one implementation here, and exactly two callers invoke
it: crate::commands::branches and crate::commands::worktree. The
module spawns git, which is why it sits beside the pure branches and
worktree modules rather than inside either: both declare themselves
parsing and classification only. The report-closing rule the two prune
verbs share lives here too, so the pair cannot fork.
Enums§
- Deletion
- The outcome of deleting one branch at a verified tip.
Functions§
- delete_
branch - Delete one branch whose tip verification authorized, compare-and-swap.
- row_
owes - Whether one report row still names a move the operator may make.