From 395628c3eeb262f6f087c3cfc647cd2f22a183a9 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 13:08:01 -1000 Subject: Drop unused config and query fields --- source/cgit.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index eeecfb6..598e80e 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -363,8 +363,6 @@ static void querystring_cb(const char *name, const char *value) ctx.qry.ofs = ofs; } else if (!strcmp(name, "path")) { ctx.qry.path = trim_end(value, '/'); - } else if (!strcmp(name, "name")) { - ctx.qry.name = xstrdup(value); } else if (!strcmp(name, "s")) { ctx.qry.sort = xstrdup(value); } else if (!strcmp(name, "showmsg")) { @@ -394,7 +392,6 @@ static void prepare_context(void) memset(&ctx, 0, sizeof(ctx)); ctx.cfg.agefile = "info/web/last-modified"; ctx.cfg.cache_size = 0; - ctx.cfg.cache_max_create_time = 5; ctx.cfg.cache_root = CGIT_CACHE_ROOT; ctx.cfg.cache_about_ttl = 15; ctx.cfg.cache_snapshot_ttl = 5; @@ -416,7 +413,6 @@ static void prepare_context(void) ctx.cfg.enable_git_config = 0; ctx.cfg.max_repo_count = 50; ctx.cfg.max_commit_count = 50; - ctx.cfg.max_lock_attempts = 5; ctx.cfg.max_msg_len = 80; ctx.cfg.max_repodesc_len = 80; ctx.cfg.max_blob_size = 10 * 1024; /* 10 MB; bounds per-request memory */ -- cgit v2.8.0