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>
Tá an tiomantas seo le fáil i:
Lars Hjemli
2008-02-16 13:56:09 +01:00
tuismitheoir b228d4ff82
tiomantas d1f3bbe9d2
D'athraigh 11 comhad le 101 breiseanna agus 103 scriosta

Féach ar an gComhad

@ -194,10 +194,10 @@ void cgit_print_commit(char *hex)
sha1_to_hex(p->item->object.sha1), NULL);
html(")</td></tr>");
}
if (cgit_repo->snapshots) {
if (ctx.repo->snapshots) {
html("<tr><th>download</th><td colspan='2' class='sha1'>");
cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head,
hex, cgit_repo->snapshots);
hex, ctx.repo->snapshots);
html("</td></tr>");
}
html("</table>\n");