MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / resolveMergeBaseBetween

Function resolveMergeBaseBetween

packages/cli/src/git.ts:282–287  ·  view source on GitHub ↗
(left: string, right: string)

Source from the content-addressed store, hash-verified

280}
281
282function resolveMergeBaseBetween(left: string, right: string): string {
283 return execFileSync("git", ["merge-base", left, right], {
284 encoding: "utf8",
285 stdio: ["ignore", "pipe", "ignore"],
286 }).trim();
287}
288
289function parseRefRange(ref: string): RefRange | null {
290 const threeDotIndex = ref.indexOf(RANGE_SEPARATOR.THREE_DOT);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected