Skip to main content

abort_discard

Function abort_discard 

Source
pub fn abort_discard(region: &[OsString]) -> Discard
Expand description

What: Read a region of merge, rebase, cherry-pick, revert or am for --abort. Why: Aborting restores the pre-operation index and worktree, discarding everything done since, including the hand edits that resolved a conflict. --ab is the shortest prefix no sibling option shares.

In TS you’d write (pseudocode):

function abortDiscard(region: string[]): Discard;