commit-graph: convert remaining functions to handle any repo