* 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')
| 168 | * @return {!Array<string>} |
| 169 | */ |
| 170 | function 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. |
no test coverage detected