---- Internal helpers ----
(ctx context.Context, from, to string)
| 370 | // ---- Internal helpers ---- |
| 371 | |
| 372 | func (p *Provider) computeMergeBase(ctx context.Context, from, to string) string { |
| 373 | out, err := p.runGit(ctx, "merge-base", "--end-of-options", from, to) |
| 374 | if err != nil { |
| 375 | return "" |
| 376 | } |
| 377 | return strings.TrimSpace(out) |
| 378 | } |
| 379 | |
| 380 | // RemoteIdentity returns a stable, credential-free identity string for the |
| 381 | // repository's "origin" remote, suitable for hashing into the run manifest's |