aboutsummaryrefslogtreecommitdiffstats
path: root/ui-log.c
diff options
context:
space:
mode:
authorLars Hjemli2011-06-02 10:33:23 +0000
committerLars Hjemli2011-06-02 10:33:23 +0000
commit7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4 (patch)
tree43a1da7034986da6e16724690d3bbfacf8117e7d /ui-log.c
parent9acd1cf137ae6c91bafa91f6a073b7908e7ea695 (diff)
parentd885158f6ac29e04bd14dd132331c7e3a93e7490 (diff)
downloadcgit-7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4.tar.gz
cgit-7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4.tar.bz2
cgit-7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4.zip
Merge branch 'stable'
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ui-log.c b/ui-log.c
index 2e6e9d6..4a295bd 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -95,7 +95,6 @@ void show_commit_decorations(struct commit *commit)
95void print_commit(struct commit *commit, struct rev_info *revs) 95void print_commit(struct commit *commit, struct rev_info *revs)
96{ 96{
97 struct commitinfo *info; 97 struct commitinfo *info;
98 char *tmp;
99 int cols = revs->graph ? 3 : 2; 98 int cols = revs->graph ? 3 : 2;
100 struct strbuf graphbuf = STRBUF_INIT; 99 struct strbuf graphbuf = STRBUF_INIT;
101 struct strbuf msgbuf = STRBUF_INIT; 100 struct strbuf msgbuf = STRBUF_INIT;
@@ -129,11 +128,7 @@ void print_commit(struct commit *commit, struct rev_info *revs)
129 } 128 }
130 else { 129 else {
131 html("<td>"); 130 html("<td>");
132 tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
133 tmp = cgit_fileurl(ctx.repo->url, "commit", ctx.qry.vpath, tmp);
134 html_link_open(tmp, NULL, NULL);
135 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); 131 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
136 html_link_close();
137 html("</td>"); 132 html("</td>");
138 } 133 }
139 134
@@ -171,11 +166,7 @@ void print_commit(struct commit *commit, struct rev_info *revs)
171 166
172 if (revs->graph) { 167 if (revs->graph) {
173 html("</td><td>"); 168 html("</td><td>");
174 tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
175 tmp = cgit_fileurl(ctx.repo->url, "commit", ctx.qry.vpath, tmp);
176 html_link_open(tmp, NULL, NULL);
177 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); 169 cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
178 html_link_close();
179 } 170 }
180 171
181 if (ctx.repo->enable_log_filecount || ctx.repo->enable_log_linecount) { 172 if (ctx.repo->enable_log_filecount || ctx.repo->enable_log_linecount) {