Hacker News new | ask | show | jobs
by thewataccount 1087 days ago
I don't think you can limit pure commit counts though, because you can push many commits/massive history changes in one go.

Monorepo's in particular could be impacted

1 comments

Good point, perhaps (age_in_years+1)×1M would be a better limit. Anyone wanting to import more than 1M commits could get a paid tier or beg support. At any rate, not that hard to implement is what I would expect
Git commit timestamps are 100% fudgeable. You could implement this based on GitHub repository age, but the assumptions would break for imported repos.

(Understanding we’re waaaay off in edge case territory here and this is all basically academic.)