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

Function gitDiffAddedNameOnlyMain

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

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

()

Source from the content-addressed store, hash-verified

100 * @return {!Array<string>}
101 */
102function gitDiffAddedNameOnlyMain() {
103 const branchPoint = gitMergeBaseLocalMain();
104 return getStdout(`git diff --name-only --diff-filter=ARC ${branchPoint}`)
105 .trim()
106 .split('\n');
107}
108
109/**
110 * Returns the full color diff of the uncommited changes on the local branch.

Callers 1

checkLinksFunction · 0.85

Calls 2

gitMergeBaseLocalMainFunction · 0.85
getStdoutFunction · 0.85

Tested by

no test coverage detected