{% page cgit_print_log %} {! page_start(); !} {! repo_header(); !}
{# Main content #} {! repo_description_panel(); !} {! repo_summary_bar(); !} {! struct rev_info rev; struct commit *commit; const char *argv[] = {NULL, ctx.qry.head}; int argc = 2; repo_init_revisions(the_repository, &rev, NULL); rev.abbrev = DEFAULT_ABBREV; rev.commit_format = CMIT_FMT_DEFAULT; rev.verbose_header = 1; rev.show_root_diff = 0; rev.ignore_missing = 1; rev.simplify_history = 1; setup_revisions(argc, argv, &rev, NULL); prepare_revision_walk(&rev); !}
{# Commits list #}
Commits
{% while (commit = get_revision(&rev)) != NULL %} {! struct commitinfo *info = cgit_parse_commit(commit); !}
object.oid) }}" class="hover:text-blue-600 hover:underline">{{ info->subject }}
{{ info->author }} committed {! cgit_print_age(info->committer_date, info->committer_tz, TM_WEEK * 2); !} ago
{! char short_commit_id[8]; !} {! memcpy(short_commit_id, oid_to_hex(&commit->object.oid), 7); !} {! short_commit_id[7] = '\0'; !} object.oid) }}" class="text-sm font-mono text-gray-500 hover:text-blue-600 hover:underline">{{ short_commit_id }}
{! cgit_free_commitinfo(info); !} {! release_commit_memory(the_repository->parsed_objects, commit); !} {! commit->parents = NULL; !} {% endwhile %} {! reset_revision_walk(); !}
{! page_end(); !} {% endpage %}