From 5f53b23103a04f97220f325772646b603c4dc25f Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 29 Apr 2019 13:23:06 +0200 Subject: Expose Generation property on CommitNode Signed-off-by: Filip Navara --- plumbing/object/commitnode.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plumbing/object/commitnode.go') diff --git a/plumbing/object/commitnode.go b/plumbing/object/commitnode.go index 22927f4..ce25487 100644 --- a/plumbing/object/commitnode.go +++ b/plumbing/object/commitnode.go @@ -25,6 +25,9 @@ type CommitNode interface { ParentNode(i int) (CommitNode, error) // ParentHashes returns hashes of the parent commits for a specified node ParentHashes() []plumbing.Hash + // Generation returns the generation of the commit for reachability analysis. + // Objects with newer generation are not reachable from objects of older generation. + Generation() uint64 // Commit returns the full commit object from the node Commit() (*Commit, error) } -- cgit