summaryrefslogtreecommitdiffabout
path: root/ui-log.c
Side-by-side diff
Diffstat (limited to 'ui-log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-log.c b/ui-log.c
index 9b2ffb6..746f40b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -36,2 +36,3 @@ void print_commit(struct commit *commit)
struct commitinfo *info;
+ char *tmp;
@@ -39,3 +40,7 @@ void print_commit(struct commit *commit)
html("<tr><td>");
+ tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
+ tmp = cgit_pageurl(ctx.repo->url, "commit", tmp);
+ html_link_open(tmp, NULL, NULL);
cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
+ html_link_close();
html("</td><td>");