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

Function resolveMergeBase

packages/cli/src/git.ts:128–133  ·  view source on GitHub ↗
(base: string)

Source from the content-addressed store, hash-verified

126}
127
128export function resolveMergeBase(base: string): string {
129 return execFileSync("git", ["merge-base", base, "HEAD"], {
130 encoding: "utf8",
131 stdio: ["ignore", "pipe", "ignore"],
132 }).trim();
133}
134
135export function resolveHead(): string {
136 return execFileSync("git", ["rev-parse", "HEAD"], {

Callers 1

resolveSingleRefScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected