GenerationV2Data returns the corrected commit date for the commits
()
| 30 | |
| 31 | // GenerationV2Data returns the corrected commit date for the commits |
| 32 | func (c *CommitData) GenerationV2Data() uint64 { |
| 33 | if c.GenerationV2 == 0 || c.GenerationV2 == math.MaxUint64 { |
| 34 | return 0 |
| 35 | } |
| 36 | return c.GenerationV2 - uint64(c.When.Unix()) |
| 37 | } |
| 38 | |
| 39 | // Index represents a representation of commit graph that allows indexed |
| 40 | // access to the nodes using commit object hash |
no outgoing calls
no test coverage detected