MCPcopy Create free account
hub / github.com/ampproject/amphtml / gitDiffNameOnly

Function gitDiffNameOnly

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

* Returns the list of files changed but not committed to the local branch, one * on each line. * @return {!Array }

()

Source from the content-addressed store, hash-verified

55 * @return {!Array<string>}
56 */
57function gitDiffNameOnly() {
58 return getStdout('git diff --name-only').trim().split('\n');
59}
60
61/**
62 * Returns the list of files changed relative to the branch point off of the

Callers 1

runNpmChecksFunction · 0.85

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected