-rw-r--r-- | ui-commit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui-commit.c b/ui-commit.c index c2fafd7..dd36cc0 100644 --- a/ui-commit.c +++ b/ui-commit.c | |||
@@ -170,16 +170,22 @@ void cgit_print_commit(char *hex) | |||
170 | html("</td></tr>\n"); | 170 | html("</td></tr>\n"); |
171 | html("<tr><th>committer</th><td>"); | 171 | html("<tr><th>committer</th><td>"); |
172 | html_txt(info->committer); | 172 | html_txt(info->committer); |
173 | html(" "); | 173 | html(" "); |
174 | html_txt(info->committer_email); | 174 | html_txt(info->committer_email); |
175 | html("</td><td class='right'>"); | 175 | html("</td><td class='right'>"); |
176 | cgit_print_date(info->committer_date, FMT_LONGDATE); | 176 | cgit_print_date(info->committer_date, FMT_LONGDATE); |
177 | html("</td></tr>\n"); | 177 | html("</td></tr>\n"); |
178 | html("<tr><th>commit</th><td colspan='2' class='sha1'>"); | ||
179 | tmp = sha1_to_hex(commit->object.sha1); | ||
180 | cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp); | ||
181 | html(" ("); | ||
182 | cgit_patch_link("patch", NULL, NULL, NULL, tmp); | ||
183 | html(")</td></tr>\n"); | ||
178 | html("<tr><th>tree</th><td colspan='2' class='sha1'>"); | 184 | html("<tr><th>tree</th><td colspan='2' class='sha1'>"); |
179 | tmp = xstrdup(hex); | 185 | tmp = xstrdup(hex); |
180 | cgit_tree_link(sha1_to_hex(commit->tree->object.sha1), NULL, NULL, | 186 | cgit_tree_link(sha1_to_hex(commit->tree->object.sha1), NULL, NULL, |
181 | ctx.qry.head, tmp, NULL); | 187 | ctx.qry.head, tmp, NULL); |
182 | html("</td></tr>\n"); | 188 | html("</td></tr>\n"); |
183 | for (p = commit->parents; p ; p = p->next) { | 189 | for (p = commit->parents; p ; p = p->next) { |
184 | parent = lookup_commit_reference(p->item->object.sha1); | 190 | parent = lookup_commit_reference(p->item->object.sha1); |
185 | if (!parent) { | 191 | if (!parent) { |