Dump the contents of the commit-graph to an in-memory buffer.
commit-graph
Buffer where to store the contents of the commit-graph.
The writer.
0 or an error code