MCPcopy
hub / github.com/ampproject/amphtml / gitCherryMain

Function gitCherryMain

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

* Returns list of commit SHAs and their cherry-pick status from the main * branch. * * `git cherry ` returns a list of commit SHAs. While the exact * mechanism is too complicated for this comment (run `git help cherry` for a * full explanation), the gist of it is that commits that were

(ref = 'HEAD')

Source from the content-addressed store, hash-verified

168 * @return {!Array<string>}
169 */
170function gitCherryMain(ref = 'HEAD') {
171 const stdout = getStdout(`git cherry main ${ref}`).trim();
172 return stdout ? stdout.split('\n') : [];
173}
174
175/**
176 * Returns (UTC) time of a commit on the local branch, in %y%m%d%H%M%S format.

Callers 1

getVersionFunction · 0.85

Calls 1

getStdoutFunction · 0.85

Tested by

no test coverage detected