From 952f4ece296d91b8b41f56de9e1c3bc80f94f196 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 27 Jul 2008 12:58:37 +0200 Subject: 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 --- cgit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index cefeddf..e2d5edb 100644 --- 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; -- cgit v1.2.3-70-g09d2 amp;showmsg=1&follow=1'>logtreecommitdiff
Commit message (Collapse)AuthorFilesLines
2020-04-19Split client part to client.goRené 'Necoro' Neumann2-125/+137
2020-04-19IMAP: Create foldersRené 'Necoro' Neumann1-4/+38
2020-04-19Improved IMAPRené 'Necoro' Neumann1-3/+88
2020-04-19Started IMAP connectionRené 'Necoro' Neumann4-0/+152
2020-04-19Use our own logger for debug for convenience sakeRené 'Necoro' Neumann1-2/+3
2020-04-19Fix debug logging m(René 'Necoro' Neumann1-2/+2
2020-04-19Rename util.go to log.go. Add verbose modeRené 'Necoro' Neumann4-24/+54
2020-04-19Clean go.modRené 'Necoro' Neumann2-3/+0
2020-04-19Do not print the parsedCfg anymoreRené 'Necoro' Neumann1-1/+1
2020-04-19Increase go-version to 1.14René 'Necoro' Neumann1-2/+2
2020-04-19CI: go vetRené 'Necoro' Neumann1-0/+3
2020-04-19Fetching and parsing the feedsRené 'Necoro' Neumann5-4/+113
2020-04-19Ignore all config*.ymlRené 'Necoro' Neumann1-1/+1