|
diff --git a/cgit.c b/cgit.c index 64d95f9..411e421 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -197,24 +197,25 @@ static void prepare_context(struct cgit_context *ctx) |
197 | ctx->cfg.root_title = "Git repository browser"; |
197 | ctx->cfg.root_title = "Git repository browser"; |
198 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
198 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
199 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
199 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
200 | ctx->cfg.summary_branches = 10; |
200 | ctx->cfg.summary_branches = 10; |
201 | ctx->cfg.summary_log = 10; |
201 | ctx->cfg.summary_log = 10; |
202 | ctx->cfg.summary_tags = 10; |
202 | ctx->cfg.summary_tags = 10; |
203 | ctx->page.mimetype = "text/html"; |
203 | ctx->page.mimetype = "text/html"; |
204 | ctx->page.charset = PAGE_ENCODING; |
204 | ctx->page.charset = PAGE_ENCODING; |
205 | ctx->page.filename = NULL; |
205 | ctx->page.filename = NULL; |
206 | ctx->page.size = 0; |
206 | ctx->page.size = 0; |
207 | ctx->page.modified = time(NULL); |
207 | ctx->page.modified = time(NULL); |
208 | ctx->page.expires = ctx->page.modified; |
208 | ctx->page.expires = ctx->page.modified; |
| |
209 | ctx->page.etag = NULL; |
209 | } |
210 | } |
210 | |
211 | |
211 | struct refmatch { |
212 | struct refmatch { |
212 | char *req_ref; |
213 | char *req_ref; |
213 | char *first_ref; |
214 | char *first_ref; |
214 | int match; |
215 | int match; |
215 | }; |
216 | }; |
216 | |
217 | |
217 | int find_current_ref(const char *refname, const unsigned char *sha1, |
218 | int find_current_ref(const char *refname, const unsigned char *sha1, |
218 | int flags, void *cb_data) |
219 | int flags, void *cb_data) |
219 | { |
220 | { |
220 | struct refmatch *info; |
221 | struct refmatch *info; |
|