Function git_next_core::git::validation::positions::validate

source ·
pub fn validate(
    open_repository: &dyn OpenRepositoryLike,
    repo_details: &RepoDetails,
    repo_config: &RepoConfig,
) -> Result<(Positions, Log)>
Expand description

Validates the relative positions of the three branches, resetting next back to main if it has gone astry.

§Errors

Will return an Err if any of the branches has no commits, or if user intervention is required, or if there is an error resetting the next branch back to main.