---- Internal helpers ----
(ctx context.Context, from, to string)
| 403 | // ---- Internal helpers ---- |
| 404 | |
| 405 | func (p *Provider) computeMergeBase(ctx context.Context, from, to string) string { |
| 406 | out, err := p.runGit(ctx, "merge-base", "--end-of-options", from, to) |
| 407 | if err != nil { |
| 408 | return "" |
| 409 | } |
| 410 | return strings.TrimSpace(out) |
| 411 | } |
| 412 | |
| 413 | // RemoteIdentity returns a stable, credential-free identity string for the |
| 414 | // repository's "origin" remote, suitable for hashing into the run manifest's |