-rw-r--r-- | shared.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -38,4 +38,5 @@ char *cgit_query_page = NULL; char *cgit_query_head = NULL; char *cgit_query_sha1 = NULL; +char *cgit_query_sha2 = NULL; int cgit_query_ofs = 0; @@ -84,4 +85,7 @@ void cgit_querystring_cb(const char *name, const char *value) cgit_query_sha1 = xstrdup(value); cgit_query_has_sha1 = 1; + } else if (!strcmp(name, "id2")) { + cgit_query_sha2 = xstrdup(value); + cgit_query_has_sha1 = 1; } else if (!strcmp(name, "ofs")) { cgit_query_ofs = atoi(value); |