commit-graph: convert to using the_hash_algo