On 8/14/2020 12:59 AM, Abhishek Kumar wrote:
I solved the issue by adding a new member to struct commit_graph
`read_generation_data` to maintain the "global" state of the entire
commit-graph chain instead.
The relevant changes are in validate_mixed_generation_chain(),
read_commit_graph_one() and fill_commit_graph_info().
I think this is a good way to go. Adding that restriction about
the tip commit-graph was short-sighted of me and was likely to
break in the future.
I think your solution here to store extra state from the entire
chain into each layer makes a lot of sense.
Thanks!
-Stolee