Skip to main content

plan_thread_drop

Function plan_thread_drop 

Source
pub fn plan_thread_drop(options: &ThreadDropOptions) -> ThreadDropDisposition
Expand description

Pure preflight for heddle thread drop / drop_thread_silent.

Rules (matching CLI):

  1. Current lane + no delete flag → refuse
  2. Current lane + delete flag → proceed to delete command (typed branch_delete_current advice; do not tear down the checkout)
  3. Missing + delete flag → proceed to delete command
  4. Missing otherwise → not found
  5. Found → drop plan (unmount if virtualized, remove a dedicated checkout if present, abandon record, strip agents, optionally delete ref). Never remove the shared repo root.