You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: merge_base_finder.go
    path of file: ./repos/lakeFS/pkg/graveler/ref
    
    the code of the file until where you have to start completion: package ref

import (
	"container/heap"
	"context"

	"github.com/treeverse/lakefs/pkg/graveler"
)

type CommitGetter interface {
	GetCommit(ctx context.Context, repository *graveler.RepositoryRecord, commitID graveler.CommitID) (*graveler.Commit, error)
}

type reachedFlags uin
    
func getCommitAndEnqueue(ctx context.Context, getter CommitGetter, queue *CommitsGenerationPriorityQueue, repository *graveler.RepositoryRecord, commitID graveler.CommitID) (*graveler.Commit, error) {
	commit, err := getter.GetCommit(ctx, repository, commitID)
	if err != nil {
		return nil, err
	}
	heap.Push(queue, &graveler.CommitRecord{CommitID: commitID, Commit: commit})
	return commit, nil
}