FSM state for confirming git branch deletion.
Holds the git root, branch name, and whether the prompt is the initial safe delete or the force-delete fallback after git reports unmerged commits.
Summary
Functions
Creates a new branch delete confirmation state.
Transitions to the force-delete confirmation prompt.
Types
@type phase() :: :delete | :force
@type t() :: %Minga.Mode.BranchDeleteConfirmState{ count: non_neg_integer() | nil, git_root: String.t(), name: String.t(), phase: phase(), reason: String.t() | nil }