Git · Senior · Question 39 of 76

What is the point of the commit-graph file?

Explanation

It caches parents and generation numbers, so Git doesn't parse every commit object. git maintenance keeps it up to date along with other optimizations.

Further reading

Problem with a question

Git · Senior · question 39

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz