html("</td><td>");
if (ref->object->type == OBJ_COMMIT) {
- cgit_commit_link(info->subject, NULL, NULL, name, NULL);
+ cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0);
html("</td><td>");
html_txt(info->author);
html("</td><td colspan='2'>");
list.refs = NULL;
list.alloc = list.count = 0;
for_each_branch_ref(cgit_refs_cb, &list);
+ if (ctx.repo->enable_remote_branches)
+ for_each_remote_ref(cgit_refs_cb, &list);
if (maxcount == 0 || maxcount > list.count)
maxcount = list.count;
qsort(list.refs, maxcount, sizeof(*list.refs), cmp_ref_name);
}
- for(i=0; i<maxcount; i++)
+ for (i = 0; i < maxcount; i++)
print_branch(list.refs[i]);
if (maxcount < list.count)
else if (maxcount > list.count)
maxcount = list.count;
print_tag_header();
- for(i=0; i<maxcount; i++)
+ for (i = 0; i < maxcount; i++)
print_tag(list.refs[i]);
if (maxcount < list.count)