(ref: string)
| 271 | } |
| 272 | |
| 273 | function canResolveRef(ref: string): boolean { |
| 274 | try { |
| 275 | resolveRefToSha(ref); |
| 276 | return true; |
| 277 | } catch { |
| 278 | return false; |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | function resolveMergeBaseBetween(left: string, right: string): string { |
| 283 | return execFileSync("git", ["merge-base", left, right], { |
no test coverage detected