aboutsummaryrefslogtreecommitdiffstats
path: root/ui-blame.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-blame.c')
-rw-r--r--ui-blame.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui-blame.c b/ui-blame.c
index 4adec2b..aedce8d 100644
--- a/ui-blame.c
+++ b/ui-blame.c
@@ -54,6 +54,15 @@ static void emit_blame_entry_hash(struct blame_entry *ent)
54 html("</span>"); 54 html("</span>");
55 free(detail); 55 free(detail);
56 56
57 if (!parse_commit(suspect->commit) && suspect->commit->parents) {
58 struct commit *parent = suspect->commit->parents->item;
59
60 html(" ");
61 cgit_blame_link("^", "Blame the previous revision", NULL,
62 ctx.qry.head, oid_to_hex(&parent->object.oid),
63 suspect->path);
64 }
65
57 while (line++ < ent->num_lines) 66 while (line++ < ent->num_lines)
58 html("\n"); 67 html("\n");
59} 68}