merge-recursive: Speed up commit graph construction