aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/layerinfo.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /format/commitgraph/read/layerinfo.go
parentresearch: Add dynamic pack resources (diff)
signatureNo signature
*: Remove
Diffstat (limited to 'format/commitgraph/read/layerinfo.go')
-rw-r--r--format/commitgraph/read/layerinfo.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/format/commitgraph/read/layerinfo.go b/format/commitgraph/read/layerinfo.go
deleted file mode 100644
index d4dbfad3..00000000
--- a/format/commitgraph/read/layerinfo.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package read
-
-// 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.
-//
-// Labels: Life-Independent.
-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
-}