summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-07-27 10:58:37 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-07-27 10:58:37 (UTC)
commit952f4ece296d91b8b41f56de9e1c3bc80f94f196 (patch) (side-by-side diff)
tree3ad6b53b89c0508b70c6dbf9bb73a02252b8ff98
parent25c84326deff579d5de4b880f9dca2690bdc8569 (diff)
downloadcgit-952f4ece296d91b8b41f56de9e1c3bc80f94f196.zip
cgit-952f4ece296d91b8b41f56de9e1c3bc80f94f196.tar.gz
cgit-952f4ece296d91b8b41f56de9e1c3bc80f94f196.tar.bz2
Modify default value for a few cgitrc options
The default max-length used when printing commit messages and repo descriptions can be increased due to the new layout (no sidebar). Also, on the repo summary page I believe it makes sense to only show the ten most recent branches and tags by default, just as it makes sense to show the ten most recent commit messages for the active branch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cgit.c b/cgit.c
index cefeddf..e2d5edb 100644
--- a/cgit.c
+++ b/cgit.c
@@ -172,4 +172,4 @@ static void prepare_context(struct cgit_context *ctx)
ctx->cfg.max_lock_attempts = 5;
- ctx->cfg.max_msg_len = 60;
- ctx->cfg.max_repodesc_len = 60;
+ ctx->cfg.max_msg_len = 80;
+ ctx->cfg.max_repodesc_len = 80;
ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s";
@@ -180,2 +180,5 @@ static void prepare_context(struct cgit_context *ctx)
ctx->cfg.script_name = CGIT_SCRIPT_NAME;
+ ctx->cfg.summary_branches = 10;
+ ctx->cfg.summary_log = 10;
+ ctx->cfg.summary_tags = 10;
ctx->page.mimetype = "text/html";