commit-graph: add missing forward declaration