martinthomson / i-d-template

A template for IETF internet draft git repositories
Other
208 stars 182 forks source link

Make branch history tunable #303

Closed mnot closed 3 years ago

mnot commented 3 years ago

... currently 30 days; would be good to make this configurable (as discussed).

martinthomson commented 3 years ago

New variables added:

GHPAGES_COMMIT_TTL is the number of days worth of commits to keep on the gh-pages branch.

GHPAGES_BRANCH_TTL is the number of days to retain a directory on gh-pages after the corresponding branch has been deleted. This is measured from the last change.

Both default to 30. Any number should be OK. I can't vouch for very large numbers, but 100000000 seems to work fine (at least on my machine).

MikeBishop commented 3 years ago

It works fine so long as you don't actually have history that old, anyway! We originally added this feature because the history of gh-pages had become the majority of a very large repo. 275k years of history will get... sizeable if changes are frequent.