diff options
Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -258,6 +258,8 @@ static void querystring_cb(const char *name, const char *value) | |||
| 258 | ctx.qry.ssdiff = atoi(value); | 258 | ctx.qry.ssdiff = atoi(value); |
| 259 | } else if (!strcmp(name, "all")) { | 259 | } else if (!strcmp(name, "all")) { |
| 260 | ctx.qry.show_all = atoi(value); | 260 | ctx.qry.show_all = atoi(value); |
| 261 | } else if (!strcmp(name, "context")) { | ||
| 262 | ctx.qry.context = atoi(value); | ||
| 261 | } | 263 | } |
| 262 | } | 264 | } |
| 263 | 265 | ||
| @@ -433,6 +435,12 @@ static void process_request(void *cbdata) | |||
| 433 | return; | 435 | return; |
| 434 | } | 436 | } |
| 435 | 437 | ||
| 438 | /* If cmd->want_vpath is set, assume ctx->qry.path contains a "virtual" | ||
| 439 | * in-project path limit to be made available at ctx->qry.vpath. | ||
| 440 | * Otherwise, no path limit is in effect (ctx->qry.vpath = NULL). | ||
| 441 | */ | ||
| 442 | ctx->qry.vpath = cmd->want_vpath ? ctx->qry.path : NULL; | ||
| 443 | |||
| 436 | if (cmd->want_repo && !ctx->repo) { | 444 | if (cmd->want_repo && !ctx->repo) { |
| 437 | cgit_print_http_headers(ctx); | 445 | cgit_print_http_headers(ctx); |
| 438 | cgit_print_docstart(ctx); | 446 | cgit_print_docstart(ctx); |
