MCPcopy Index your code
hub / github.com/angular/dev-infra / cherryPick

Method cherryPick

ng-dev/utils/testing/sandbox-testing.ts:80–83  ·  view source on GitHub ↗

Cherry-picks a commit into the current branch.

(commitId: number)

Source from the content-addressed store, hash-verified

78
79 /** Cherry-picks a commit into the current branch. */
80 cherryPick(commitId: number): this {
81 runGitInTmpDir(['cherry-pick', '--allow-empty', this.getShaForCommitId(commitId)]);
82 return this;
83 }
84
85 /** Retrieve the sha for the commit. */
86 getShaForCommitId(commitId: number, type: 'long' | 'short' = 'long'): string {

Calls 2

getShaForCommitIdMethod · 0.95
runGitInTmpDirFunction · 0.85

Tested by

no test coverage detected