Move cgit_repo into cgit_context

This removes the global variable which is used to keep track of the
currently selected repository, and adds a new variable in the cgit_context
structure.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli
2008-02-16 13:56:09 +01:00
父节点 b228d4ff82
当前提交 d1f3bbe9d2
共有 11 个文件被更改,包括 101 次插入103 次删除

查看文件

@@ -182,9 +182,9 @@ void cgit_print_tags(int maxcount)
void cgit_print_summary()
{
if (cgit_repo->readme) {
if (ctx.repo->readme) {
html("<div id='summary'>");
html_include(cgit_repo->readme);
html_include(ctx.repo->readme);
html("</div>");
}
if (ctx.cfg.summary_log > 0)