diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-10-13 23:06:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 23:06:19 +0100 |
commit | 72ce9961c676b73c9bdd0678b64af7b0a42253f8 (patch) | |
tree | 3e6c8e7b0706918455a2d85fe6629242acab163f /plumbing/object/commitgraph/commitnode.go | |
parent | 24261e8288b2483628d69c751dd310ac79c38b2e (diff) | |
parent | 69b88d9bda44ebfe1d56a7624b956d9e20818c0e (diff) | |
download | go-git-72ce9961c676b73c9bdd0678b64af7b0a42253f8.tar.gz |
Merge pull request #869 from zeripath/graph-generation-2v5.10.0
plumbing: commitgraph, Add generation v2 support
Diffstat (limited to 'plumbing/object/commitgraph/commitnode.go')
-rw-r--r-- | plumbing/object/commitgraph/commitnode.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/object/commitgraph/commitnode.go b/plumbing/object/commitgraph/commitnode.go index d92c906..47227d4 100644 --- a/plumbing/object/commitgraph/commitnode.go +++ b/plumbing/object/commitgraph/commitnode.go @@ -29,6 +29,10 @@ type CommitNode interface { // Generation returns the generation of the commit for reachability analysis. // Objects with newer generation are not reachable from objects of older generation. Generation() uint64 + // GenerationV2 stores the corrected commit date for the commits + // It combines the contents of the GDA2 and GDO2 sections of the commit-graph + // with the commit time portion of the CDAT section. + GenerationV2() uint64 // Commit returns the full commit object from the node Commit() (*object.Commit, error) } |