Skip to main content

get_version_height

Function get_version_height 

Source
pub fn get_version_height(
    context: &GitContext,
    base_version: Option<&Version>,
) -> Result<VersionHeightCalculation>
Expand description

Calculates version height at the selected commit.

When base_version is omitted, the selected commit’s version is used. The walk stops independently on each ancestry path as soon as a version change resets height.