MCPcopy Create free account
hub / github.com/go-git/go-git / GenerationV2

Method GenerationV2

plumbing/object/commitgraph/commitnode_graph.go:123–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func (c *graphCommitNode) GenerationV2() uint64 {
124 // If the commit-graph file was generated with older Git version that
125 // set the generation to zero for every commit the generation assumption
126 // is still valid. It is just less useful.
127 return c.commitData.GenerationV2
128}
129
130func (c *graphCommitNode) Commit() (*object.Commit, error) {
131 return object.GetCommit(c.gci.s, c.hash)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected