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