Skip to main content

resolve_duration_range

Function resolve_duration_range 

Source
pub fn resolve_duration_range(
    repo_root: &Path,
    diff_range: Option<&str>,
) -> Result<ResolvedRange>
Expand description

Resolves a duration spec to the last commit before the window.

Every other range is left untouched. git diff <that commit> covers both the commits made inside the window and the uncommitted work on top.

A ref that happens to look like a duration (a branch 24h, an abbreviated sha 24d) keeps its git meaning: the revision is probed first, so no existing invocation changes behaviour.