]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Modify default value for a few cgitrc options
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index cefeddfa12fb30d1c2711a79919aebb183ed5382..e2d5edb629f98e05f9003e5921661de69a907a95 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -170,14 +170,17 @@ static void prepare_context(struct cgit_context *ctx)
        ctx->cfg.max_repo_count = 50;
        ctx->cfg.max_commit_count = 50;
        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";
        ctx->cfg.renamelimit = -1;
        ctx->cfg.robots = "index, nofollow";
        ctx->cfg.root_title = "Git repository browser";
        ctx->cfg.root_desc = "a fast webinterface for the git dscm";
        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";
        ctx->page.charset = PAGE_ENCODING;
        ctx->page.filename = NULL;