X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/52e605caf573fa20fdd4fbac5e1cc69b7740b1f5..23734c5a2b607dca2d634cafdc63202a687f26d3:/shared.c diff --git a/shared.c b/shared.c index e4595fa..dd711a8 100644 --- a/shared.c +++ b/shared.c @@ -39,6 +39,7 @@ char *cgit_query_head = NULL; char *cgit_query_search = NULL; char *cgit_query_sha1 = NULL; char *cgit_query_sha2 = NULL; +char *cgit_query_path = NULL; int cgit_query_ofs = 0; int htmlfd = 0; @@ -100,6 +101,8 @@ void cgit_querystring_cb(const char *name, const char *value) cgit_query_has_sha1 = 1; } else if (!strcmp(name, "ofs")) { cgit_query_ofs = atoi(value); + } else if (!strcmp(name, "path")) { + cgit_query_path = xstrdup(value); } }