Skip to content

@saflib/git


Function: mergeBase()

mergeBase(repoRoot, a, b): ReturnsError<string, GitCommandError>>

Best common ancestor of two commits/refs (git merge-base <a> <b>).

Parameters

ParameterType
repoRootstring
astring
bstring

Returns

ReturnsError<string, GitCommandError>