git-arr: increase default 'max_pages' value
The 'max_pages' default value of 5 is quite low. Coupled with 'commits_per_page' default 50, this allows for only 250 commits, which is likely unsuitable for even relatively small projects. Options are to remove the cap altogether or to raise the default limit. At this time, choose the latter, which should be friendlier to larger projects, in general, while still guarding against run-away storage space consumption. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
This commit is contained in:
parent
56fcfd0278
commit
bb9bad89d1
2
git-arr
2
git-arr
@ -51,7 +51,7 @@ def load_config(path):
|
|||||||
'recursive': 'no',
|
'recursive': 'no',
|
||||||
'commits_in_summary': '10',
|
'commits_in_summary': '10',
|
||||||
'commits_per_page': '50',
|
'commits_per_page': '50',
|
||||||
'max_pages': '5',
|
'max_pages': '250',
|
||||||
'web_url': '',
|
'web_url': '',
|
||||||
'web_url_file': 'web_url',
|
'web_url_file': 'web_url',
|
||||||
'git_url': '',
|
'git_url': '',
|
||||||
|
@ -29,8 +29,8 @@ path = /srv/git/repo/
|
|||||||
# Maximum number of per-branch pages for static generation (optional).
|
# Maximum number of per-branch pages for static generation (optional).
|
||||||
# When generating static html, this is the maximum number of pages we will
|
# When generating static html, this is the maximum number of pages we will
|
||||||
# generate for each branch's commit listings. Zero (0) means unlimited.
|
# generate for each branch's commit listings. Zero (0) means unlimited.
|
||||||
# Default: 5
|
# Default: 250
|
||||||
#max_pages = 5
|
#max_pages = 250
|
||||||
|
|
||||||
# Project website (optional).
|
# Project website (optional).
|
||||||
# URL to the project's website. %(name)s will be replaced with the current
|
# URL to the project's website. %(name)s will be replaced with the current
|
||||||
|
Loading…
Reference in New Issue
Block a user