Get maxcommits