Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

format/commitgraph/read: Lifetime

Runxi Yu 7654ba81 f04d559b

+10
+2
format/commitgraph/read/commitat.go
··· 8 8 ) 9 9 10 10 // CommitAt returns decoded commit-graph metadata at one position. 11 + // 12 + // Labels: Life-Independent. 11 13 func (reader *Reader) CommitAt(pos Position) (Commit, error) { 12 14 layer, err := reader.layerByPosition(pos) 13 15 if err != nil {
+4
format/commitgraph/read/iterators.go
··· 8 8 ) 9 9 10 10 // AllPositions iterates all commit positions in native layer order. 11 + // 12 + // Labels: Life-Parent. 11 13 func (reader *Reader) AllPositions() iter.Seq[Position] { 12 14 return func(yield func(Position) bool) { 13 15 for layerIdx := range reader.layers { ··· 28 30 } 29 31 30 32 // AllOIDs iterates all commit object IDs in native layer order. 33 + // 34 + // Labels: Life-Parent. 31 35 func (reader *Reader) AllOIDs() iter.Seq[objectid.ObjectID] { 32 36 return func(yield func(objectid.ObjectID) bool) { 33 37 positions := reader.AllPositions()
+2
format/commitgraph/read/layerinfo.go
··· 8 8 } 9 9 10 10 // Layers returns loaded layer metadata in native chain order. 11 + // 12 + // Labels: Life-Independent. 11 13 func (reader *Reader) Layers() []LayerInfo { 12 14 out := make([]LayerInfo, 0, len(reader.layers)) 13 15 for i := range reader.layers {
+2
format/commitgraph/read/oidat.go
··· 6 6 ) 7 7 8 8 // OIDAt returns object ID at one position. 9 + // 10 + // Labels: Life-Independent. 9 11 func (reader *Reader) OIDAt(pos Position) (objectid.ObjectID, error) { 10 12 layer, err := reader.layerByPosition(pos) 11 13 if err != nil {