Git · Senior · Question 39 of 76
What is the point of the commit-graph file?
- 1It stores a rendered picture of the branch graph for GUIs
- ✓Correct answer: It speeds up history walks like log and merge-base
- 3It records which developer reviewed each commit
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.