]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-patch.c
Introduce struct cgit_context
[ps-cgit] / ui-patch.c
index e7a010accb58f0489f839a19fd3007733199c6ac..1da0a27ae9cac4f0c57770be2edd795b8ebaa18d 100644 (file)
@@ -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));