mirror of
https://git.zx2c4.com/cgit
synced 2025-06-21 01:25:46 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue