cherrypick: Limit size of commit graph
Created by: efritz
This tracks a cherry-pick of c39245e47dcb6178857e82d0028f90a96e1cec33 into the 3.22 branch.
Created by: efritz
This tracks a cherry-pick of c39245e47dcb6178857e82d0028f90a96e1cec33 into the 3.22 branch.