Skip to content

getMergeBase ​

Find a merge base between two commits

Signature ​

ts
class Repository {
  mergeBase(one: string, two: string): string;
}

Parameters ​

  • onerequired · string

    One of the commits OID.

  • tworequired · string

    The other commit OID.

Returns ​

  • string

    The OID of a merge base between 'one' and 'two'.

Released under the MIT License.