|
diff --git a/cgit.c b/cgit.c index 1c213c7..f5135d9 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -87,33 +87,33 @@ static void cgit_print_repo_page(struct cacheitem *item) |
87 | cgit_print_docend(); |
87 | cgit_print_docend(); |
88 | return; |
88 | return; |
89 | } |
89 | } |
90 | |
90 | |
91 | cgit_print_pageheader(cgit_query_page, show_search); |
91 | cgit_print_pageheader(cgit_query_page, show_search); |
92 | |
92 | |
93 | switch(cgit_cmd) { |
93 | switch(cgit_cmd) { |
94 | case CMD_LOG: |
94 | case CMD_LOG: |
95 | cgit_print_log(cgit_query_head, cgit_query_ofs, |
95 | cgit_print_log(cgit_query_head, cgit_query_ofs, |
96 | cgit_max_commit_count, cgit_query_search, |
96 | cgit_max_commit_count, cgit_query_search, |
97 | cgit_query_path, 1); |
97 | cgit_query_path, 1); |
98 | break; |
98 | break; |
99 | case CMD_TREE: |
99 | case CMD_TREE: |
100 | cgit_print_tree(cgit_query_sha1, cgit_query_path); |
100 | cgit_print_tree(cgit_query_sha1, cgit_query_path); |
101 | break; |
101 | break; |
102 | case CMD_COMMIT: |
102 | case CMD_COMMIT: |
103 | cgit_print_commit(cgit_query_head); |
103 | cgit_print_commit(cgit_query_sha1); |
104 | break; |
104 | break; |
105 | case CMD_DIFF: |
105 | case CMD_DIFF: |
106 | cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2, |
106 | cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2, |
107 | cgit_query_path); |
107 | cgit_query_path); |
108 | break; |
108 | break; |
109 | default: |
109 | default: |
110 | cgit_print_error("Invalid request"); |
110 | cgit_print_error("Invalid request"); |
111 | } |
111 | } |
112 | cgit_print_docend(); |
112 | cgit_print_docend(); |
113 | } |
113 | } |
114 | |
114 | |
115 | static void cgit_fill_cache(struct cacheitem *item, int use_cache) |
115 | static void cgit_fill_cache(struct cacheitem *item, int use_cache) |
116 | { |
116 | { |
117 | static char buf[PATH_MAX]; |
117 | static char buf[PATH_MAX]; |
118 | int stdout2; |
118 | int stdout2; |
119 | |
119 | |
|