blob: a5effa53c97986cf25c2c2bbfdafda92f80a8a81 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package mergebase
import (
commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
"codeberg.org/lindenii/furgit/objectid"
"codeberg.org/lindenii/furgit/objectstore"
)
// Query builds one merge-base query over two commit roots.
//
// Both inputs are peeled through annotated tags before commit traversal.
func Query(
store objectstore.Store,
graph *commitgraphread.Reader,
left objectid.ObjectID,
right objectid.ObjectID,
) *Bases {
return &Bases{
store: store,
graph: graph,
left: left,
right: right,
}
}
|