pub fn merge_base_with_head(
repo_path: &Path,
branch: &str,
) -> Result<Option<String>, GitToolingError>Expand description
Returns the merge-base commit between HEAD and the provided branch, if both exist.
The function mirrors git merge-base HEAD <branch> but returns Ok(None) when
the repository has no HEAD yet or when the branch cannot be resolved.