Skip to main content

resolve_for_command

Function resolve_for_command 

Source
pub fn resolve_for_command(
    prev: &Snapshot,
    current: &Snapshot,
    base: DiffOptions,
    hint_args: &HintArgs,
) -> Result<DiffOptions, CliError>
Expand description

Resolves renames for a command: interactive when stdin is a terminal, hints mode otherwise.

ยงErrors

Returns CliError::MissingHints (exit code 2) when hints mode leaves questions unanswered, and the errors of HintArgs::load and resolve_renames.