Skip to main content

merge_base

Function merge_base 

Source
pub async fn merge_base(cwd: &Path, base: &str) -> Option<String>
Expand description

The commit base and HEAD forked at, as a validated commit id.

The branch-ahead diff is a three-dot diff, so its old side is numbered in the merge-base tree, not at base’s current tip: a base that has advanced since the fork would otherwise shift every old-side line.