Skip to main content

parse_remove_plan

Function parse_remove_plan 

Source
pub fn parse_remove_plan(
    arguments: &[OsString],
    subcommand_index: usize,
    start: &Path,
) -> Option<RemovePlan>
Expand description

What: Plan one invocation of git worktree remove that names exactly one directory and no option. Why: --force and every other option change what Git checks, so those forms stay with Git.

In TS you’d write (pseudocode):

function parseRemovePlan(args: string[], subcommandIndex: number, start: string): RemovePlan | undefined;