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

Function gitDiffNameOnlyMain

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

* Returns the list of files changed relative to the branch point off of the * main branch, one on each line. * @return {!Array }

()

Source from the content-addressed store, hash-verified

64 * @return {!Array<string>}
65 */
66function gitDiffNameOnlyMain() {
67 const mainBaseline = gitMainBaseline();
68 return getStdout(`git diff --name-only ${mainBaseline}`).trim().split('\n');
69}
70
71/**
72 * Returns the list of files changed relative to the branch point off of the

Callers 4

determineBuildTargetsFunction · 0.85
isLargeRefactorFunction · 0.85
unitTestsToRunFunction · 0.85
getFilesChangedFunction · 0.85

Calls 2

gitMainBaselineFunction · 0.85
getStdoutFunction · 0.85

Tested by

no test coverage detected