|
diff --git a/cgit.c b/cgit.c index 1281bfa..4b91829 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -88,32 +88,35 @@ static void cgit_print_repo_page(struct cacheitem *item) |
88 | } |
88 | } |
89 | |
89 | |
90 | cgit_print_pageheader(cgit_query_page, show_search); |
90 | cgit_print_pageheader(cgit_query_page, show_search); |
91 | |
91 | |
92 | switch(cgit_cmd) { |
92 | switch(cgit_cmd) { |
93 | case CMD_LOG: |
93 | case CMD_LOG: |
94 | cgit_print_log(cgit_query_sha1, cgit_query_ofs, |
94 | cgit_print_log(cgit_query_sha1, cgit_query_ofs, |
95 | cgit_max_commit_count, cgit_query_search, |
95 | cgit_max_commit_count, cgit_query_search, |
96 | cgit_query_path, 1); |
96 | cgit_query_path, 1); |
97 | break; |
97 | break; |
98 | case CMD_TREE: |
98 | case CMD_TREE: |
99 | cgit_print_tree(cgit_query_sha1, cgit_query_path); |
99 | cgit_print_tree(cgit_query_sha1, cgit_query_path); |
100 | break; |
100 | break; |
101 | case CMD_COMMIT: |
101 | case CMD_COMMIT: |
102 | cgit_print_commit(cgit_query_sha1); |
102 | cgit_print_commit(cgit_query_sha1); |
103 | break; |
103 | break; |
| |
104 | case CMD_TAG: |
| |
105 | cgit_print_tag(cgit_query_sha1); |
| |
106 | break; |
104 | case CMD_DIFF: |
107 | case CMD_DIFF: |
105 | cgit_print_diff(cgit_query_sha1, cgit_query_sha2); |
108 | cgit_print_diff(cgit_query_sha1, cgit_query_sha2); |
106 | break; |
109 | break; |
107 | default: |
110 | default: |
108 | cgit_print_error("Invalid request"); |
111 | cgit_print_error("Invalid request"); |
109 | } |
112 | } |
110 | cgit_print_docend(); |
113 | cgit_print_docend(); |
111 | } |
114 | } |
112 | |
115 | |
113 | static void cgit_fill_cache(struct cacheitem *item, int use_cache) |
116 | static void cgit_fill_cache(struct cacheitem *item, int use_cache) |
114 | { |
117 | { |
115 | static char buf[PATH_MAX]; |
118 | static char buf[PATH_MAX]; |
116 | int stdout2; |
119 | int stdout2; |
117 | |
120 | |
118 | getcwd(buf, sizeof(buf)); |
121 | getcwd(buf, sizeof(buf)); |
119 | item->st.st_mtime = time(NULL); |
122 | item->st.st_mtime = time(NULL); |
|