Skip to content

getMergeBases ​

Find all merge bases between two commits

Signature ​

ts
class Repository {
  getMergeBases(one: string, two: string): string[];
}

Parameters ​

  • onerequired · string

    One of the commits OID.

  • tworequired · string

    The other commit OID.

Returns ​

  • string[]

    Array in which to store the resulting OIDs.

Released under the MIT License.