aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/layerinfo.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 11:54:21 +0800
committerGravatar Runxi Yu2026-03-06 11:55:56 +0800
commitc62c5544fa23378843a3383a9dcd4494e5ea33bc (patch)
tree8b825a36767fe0ba3fb44f27cb634047c4c0318f /format/commitgraph/layerinfo.go
parentformat/pack/ingest: Fix delta apply import (diff)
signatureNo signature
format/commitgraph: Split into ./read and ./ v0.1.60
Diffstat (limited to 'format/commitgraph/layerinfo.go')
-rw-r--r--format/commitgraph/layerinfo.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/format/commitgraph/layerinfo.go b/format/commitgraph/layerinfo.go
deleted file mode 100644
index f5750368..00000000
--- a/format/commitgraph/layerinfo.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package commitgraph
-
-// LayerInfo describes one loaded commit-graph layer.
-type LayerInfo struct {
- Path string
- BaseCount uint32
- Commits uint32
-}
-
-// Layers returns loaded layer metadata in native chain order.
-func (reader *Reader) Layers() []LayerInfo {
- out := make([]LayerInfo, 0, len(reader.layers))
- for i := range reader.layers {
- layer := reader.layers[i]
- out = append(out, LayerInfo{
- Path: layer.path,
- BaseCount: layer.baseCount,
- Commits: layer.numCommits,
- })
- }
-
- return out
-}