Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plumbing: commitgraph, add function to build graphs #880

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zeripath
Copy link
Contributor

Make builder function for creating commitgraphs which could be written with the functionality in encoder.go.

plumbing/object/commitgraph/commitnode_graph_builder.go Outdated Show resolved Hide resolved
plumbing/object/commitgraph/commitnode_graph_builder.go Outdated Show resolved Hide resolved
plumbing/object/commitgraph/commitnode_graph_builder.go Outdated Show resolved Hide resolved
Comment on lines 174 to 176
// Not in the graph yet
// OK so to add a node we need to check its parents
// If all of the parents are in the graph then we can add the node.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Not in the graph yet
// OK so to add a node we need to check its parents
// If all of the parents are in the graph then we can add the node.
// The node is not in the graph yet. But to add it we first need to check its parents.
// Only when all of the parents are in the graph that we can add the node.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about this I'd done quite a lot of rewriting of the comments - I think things should be a lot clearer in the rewrite!

Make builder function for creating commitgraphs which could be written
with the functionality in encoder.go.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants