MCPcopy Index your code
hub / github.com/ampproject/amphtml / gitMergeBaseLocalMain

Function gitMergeBaseLocalMain

build-system/common/git.js:194–196  ·  view source on GitHub ↗

* Returns the merge base of the current branch off of the main branch when * running on a local workspace. * @return {string}

()

Source from the content-addressed store, hash-verified

192 * @return {string}
193 */
194function gitMergeBaseLocalMain() {
195 return getStdout('git merge-base main HEAD').trim();
196}
197
198/**
199 * Returns the baseline commit from the main branch, regardless of running

Callers 3

gitBranchCreationPointFunction · 0.85
gitDiffAddedNameOnlyMainFunction · 0.85
gitMainBaselineFunction · 0.85

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected