diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/ui-commit.c | 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 4 insertions, 2 deletions
diff --git a/source/ui-commit.c b/source/ui-commit.c index befff25..5f010fd 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -129,6 +129,10 @@ void cgit_print_commit(char *hex, const char *prefix) cgit_patch_link("patch", NULL, NULL, NULL, commit_hex, prefix); html(")</td></tr>\n"); + // The parent rows follow the commit row so the commit hashes sit + // together, leaving the tree beside the download links. + parents = print_parent_rows(commit, hex, prefix); + html("<tr><th>tree</th><td colspan='2' class='oid'>"); tree_rev = xstrdup(hex); cgit_tree_link(oid_to_hex(get_commit_tree_oid(commit)), NULL, NULL, @@ -141,8 +145,6 @@ void cgit_print_commit(char *hex, const char *prefix) free(tree_rev); html("</td></tr>\n"); - parents = print_parent_rows(commit, hex, prefix); - if (ctx.repo->snapshots) { html("<tr><th>download</th><td colspan='2' class='oid'>"); cgit_print_snapshot_links(ctx.repo, hex, "<br>"); |
