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

Function gitDiffPath

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

* Returns the diffs for given path based on the given commit * @param {string} path * @param {string} commit * @return {string}

(path, commit)

Source from the content-addressed store, hash-verified

214 * @return {string}
215 */
216function gitDiffPath(path, commit) {
217 return getStdout(`git diff ${commit} ${path}`).trim();
218}
219
220module.exports = {
221 gitBranchCreationPoint,

Callers

nothing calls this directly

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected