Unidiff1 files changed, 5 insertions, 2 deletions
|
diff --git a/cgit.c b/cgit.c index 277b849..fba97d7 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -26,4 +26,7 @@ static void cgit_print_repo_page(struct cacheitem *item) |
26 | char *title = fmt("%s - %s", cgit_repo_name, cgit_repo_desc); |
26 | char *title = fmt("%s - %s", cgit_repo_name, cgit_repo_desc); |
| |
27 | int show_search = 0; |
| |
28 | if (cgit_query_page && !strcmp(cgit_query_page, "log")) |
| |
29 | show_search = 1; |
27 | cgit_print_docstart(title, item); |
30 | cgit_print_docstart(title, item); |
28 | cgit_print_pageheader(title, 0); |
31 | cgit_print_pageheader(title, show_search); |
29 | if (!cgit_query_page) { |
32 | if (!cgit_query_page) { |
@@ -31,3 +34,3 @@ static void cgit_print_repo_page(struct cacheitem *item) |
31 | } else if (!strcmp(cgit_query_page, "log")) { |
34 | } else if (!strcmp(cgit_query_page, "log")) { |
32 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100); |
35 | cgit_print_log(cgit_query_head, cgit_query_ofs, 100, cgit_query_search); |
33 | } else if (!strcmp(cgit_query_page, "tree")) { |
36 | } else if (!strcmp(cgit_query_page, "tree")) { |
|