---- Internal helpers ----
(ctx context.Context, from, to string)
| 457 | // ---- Internal helpers ---- |
| 458 | |
| 459 | func (p *Provider) computeMergeBase(ctx context.Context, from, to string) string { |
| 460 | out, err := p.runGit(ctx, "merge-base", "--end-of-options", from, to) |
| 461 | if err != nil { |
| 462 | return "" |
| 463 | } |
| 464 | return strings.TrimSpace(out) |
| 465 | } |
| 466 | |
| 467 | // RemoteIdentity returns a stable, credential-free identity string for the |
| 468 | // repository's "origin" remote, suitable for hashing into the run manifest's |