X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/93397a765b9d9af11b7d10c114406e303ea4fb1c..0274b57d55a12ed38259757dbfae96b79cfa2e0b:/cgit.c diff --git a/cgit.c b/cgit.c index 5a93fcd..db5d342 100644 --- a/cgit.c +++ b/cgit.c @@ -154,6 +154,8 @@ static void querystring_cb(const char *name, const char *value) ctx.qry.name = xstrdup(value); } else if (!strcmp(name, "mimetype")) { ctx.qry.mimetype = xstrdup(value); + } else if (!strcmp(name, "showmsg")) { + ctx.qry.showmsg = atoi(value); } } @@ -254,6 +256,7 @@ static int prepare_repo_cmd(struct cgit_context *ctx) ctx->page.title = fmt("%s - %s", ctx->repo->name, ctx->repo->desc); if (!ctx->qry.head) { + ctx->qry.nohead = 1; ctx->qry.head = find_default_branch(ctx->repo); ctx->repo->defbranch = ctx->qry.head; }