mirror of
https://git.zx2c4.com/cgit
synced 2025-06-24 10:48:44 +02:00
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>
This commit is contained in:
parent
b228d4ff82
commit
d1f3bbe9d2
11 changed files with 101 additions and 103 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue