Set the git commit-graph for the ODB.
After a successful call, the ownership of the cgraph parameter will be transferred to libgit2, and the caller should not free it.
The commit-graph can also be unset by explicitly passing NULL as the cgraph parameter.
0 on success; error code otherwise