MCPcopy Index your code
hub / github.com/react/react / getMergeBaseFromLocalGitRepo

Function getMergeBaseFromLocalGitRepo

scripts/bench/build.js:53–60  ·  view source on GitHub ↗
(localRepo)

Source from the content-addressed store, hash-verified

51}
52
53async function getMergeBaseFromLocalGitRepo(localRepo) {
54 const repo = await Git.Repository.open(localRepo);
55 return await Git.Merge.base(
56 repo,
57 await repo.getHeadCommit(),
58 await repo.getBranchCommit('main')
59 );
60}
61
62async function buildBenchmarkBundlesFromGitRepo(
63 commitId,

Callers 1

benchmarkRemoteMasterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected