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

Function gitDiffColor

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

* Returns the full color diff of the uncommited changes on the local branch. * @return {string}

()

Source from the content-addressed store, hash-verified

111 * @return {string}
112 */
113function gitDiffColor() {
114 return getStdout('git -c color.ui=always diff').trim();
115}
116
117/**
118 * Returns the full color diff of the given file relative to the branch point

Callers 1

runNpmChecksFunction · 0.85

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected