From 9d8d9b61238df3a855504825e5f735d00289f12b Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Fri, 22 Dec 2006 00:58:18 +0100 Subject: Only show first 80 characters of commit subject in log and summary Signed-off-by: Lars Hjemli --- ui-log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index def96f6..f3b16e7 100644 --- a/ui-log.c +++ b/ui-log.c @@ -23,7 +23,7 @@ void print_commit(struct commit *commit) char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); char *url = cgit_pageurl(cgit_query_repo, "commit", qry); html_link_open(url, NULL, NULL); - html_txt(info->subject); + html_ntxt(80, info->subject); html_link_close(); html(""); html_txt(info->author); @@ -48,7 +48,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt) prepare_revision_walk(&rev); html("

Log

"); - html(""); + html("
"); html("" "" "\n"); -- cgit v1.2.3-59-g8ed1b
DateMessageAuthor