(ref: string, startPoint?: string)
| 49 | } |
| 50 | |
| 51 | async checkout(ref: string, startPoint?: string): Promise<void> { |
| 52 | const args = ['checkout', '--progress'] |
| 53 | if (startPoint) { |
| 54 | args.push('-B', ref, startPoint) |
| 55 | } else { |
| 56 | args.push(ref) |
| 57 | } |
| 58 | // https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5 |
| 59 | args.push('--') |
| 60 | await this.exec(args) |
| 61 | } |
| 62 | |
| 63 | async cherryPick( |
| 64 | options?: string[], |