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_object.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_object.go')
-rw-r--r-- | plumbing/object/commitgraph/commitnode_object.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plumbing/object/commitgraph/commitnode_object.go b/plumbing/object/commitgraph/commitnode_object.go index 1bd37e3..7256bed 100644 --- a/plumbing/object/commitgraph/commitnode_object.go +++ b/plumbing/object/commitgraph/commitnode_object.go @@ -85,6 +85,13 @@ func (c *objectCommitNode) Generation() uint64 { return math.MaxUint64 } +func (c *objectCommitNode) GenerationV2() uint64 { + // Commit nodes representing objects outside of the commit graph can never + // be reached by objects from the commit-graph thus we return the highest + // possible value. + return math.MaxUint64 +} + func (c *objectCommitNode) Commit() (*object.Commit, error) { return c.commit, nil } |