git-rev-list: split out commit limiting from main() too.