Cherry-picks a commit into the current branch.
(commitId: number)
| 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 { |
no test coverage detected