Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-refs.c
diff options
context:
space:
mode:
Commitd14d77fe95c3b6224b40df9b101dded0deea913c (patch)
Author
 Lars Hjemli <hjemli@gmail.com>
2008-02-16 11:53:40 +0100
Committer
 Lars Hjemli <hjemli@gmail.com>
2008-02-16 12:07:28 +0100
Files7e0d9c8f2c0f86b8946aea0bb823085c33b164b3 /ui-refs.c
cgit-d14d77fe95c3b6224b40df9b101dded0deea913c.tar
cgit-d14d77fe95c3b6224b40df9b101dded0deea913c.tar.gz
cgit-d14d77fe95c3b6224b40df9b101dded0deea913c.zip
Parente5ed227ef0da561e2bde8646ec816842392377ee (diff)
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>
1 files changed, 2 insertions, 2 deletions
-rw-r--r--ui-refs.c4
diff --git a/ui-refs.c b/ui-refs.c
index 295f5ba..ba513c1 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -16,9 +16,9 @@ void cgit_print_refs()
html("<table class='list nowrap'>");
- if (cgit_query_path && !strncmp(cgit_query_path, "heads", 5))
+ if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5))
cgit_print_branches(0);
- else if (cgit_query_path && !strncmp(cgit_query_path, "tags", 4))
+ else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4))
cgit_print_tags(0);
else {
cgit_print_branches(0);