From c3014aaaba1d98b8e54537cef6246add1ab62094 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Mon, 14 Dec 2015 12:49:23 +0100 Subject: Add config.def.h and make summary length configurable --- urmoms.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'urmoms.c') diff --git a/urmoms.c b/urmoms.c index b1c2aff..81ea49e 100644 --- a/urmoms.c +++ b/urmoms.c @@ -10,6 +10,7 @@ #include #include +#include "config.h" #include "git2.h" struct commitinfo { @@ -428,9 +429,9 @@ writelog(FILE *fp) fputs("", fp); if (ci->summary) { fprintf(fp, "", relpath, ci->oid); - if ((len = strlen(ci->summary)) > 79) { - xmlencode(fp, ci->summary, 76); - fputs("...", fp); + if ((len = strlen(ci->summary)) > summarylen) { + xmlencode(fp, ci->summary, summarylen - 1); + fputs("…", fp); } else { xmlencode(fp, ci->summary, len); } -- cgit v1.2.3