Introduce struct cgit_context

This struct will hold all the cgit runtime information currently found in
a multitude of global variables.

The first cleanup removes all querystring-related variables.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Šī revīzija ir iekļauta:
Lars Hjemli
2008-02-16 11:53:40 +01:00
vecāks e5ed227ef0
revīzija d14d77fe95
13 mainīti faili ar 156 papildinājumiem un 164 dzēšanām

Parādīt failu

@@ -76,7 +76,7 @@ void cgit_print_patch(char *hex, struct cacheitem *item)
char *patchname;
if (!hex)
hex = cgit_query_head;
hex = ctx.qry.head;
if (get_sha1(hex, sha1)) {
cgit_print_error(fmt("Bad object id: %s", hex));