diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-08-28 11:54:59 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-08-29 13:21:19 +0000 |
| commit | e46dcff2767435630f9f28e4e5ea141309798801 (patch) | |
| tree | 1c62decf65a6fdf1829b2f4b33fbb9ea8e3b1cf9 /pkg/vcs/vcs.go | |
| parent | af983df1f68f6c49fc740287927618a30ce3e8a8 (diff) | |
pkg/covermerger: optimize checkouts
Every commit checkout takes >3 seconds.
Let's optimize this operation to save on large merges.
Diffstat (limited to 'pkg/vcs/vcs.go')
| -rw-r--r-- | pkg/vcs/vcs.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go index faf1cf85d..0730ba721 100644 --- a/pkg/vcs/vcs.go +++ b/pkg/vcs/vcs.go @@ -69,6 +69,9 @@ type Repo interface { // MergeBases returns good common ancestors of the two commits. MergeBases(firstCommit, secondCommit string) ([]*Commit, error) + + // CommitExists check for the commit presence in local checkout. + CommitExists(commit string) (bool, error) } // Bisecter may be optionally implemented by Repo. |
