]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Extend repo summary with tag list
[ps-cgit] / shared.c
index e4595fabe0cd2f1650fa1566adfb67c1568b60e3..dd711a86563c6452a75d4d57307f05533a4a63cf 100644 (file)
--- 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);
        }
 }