a157f4fce31b8aee4a230c721624e9f98fd66333
galt
Sun Mar 7 12:07:58 2010 -0800
suppress commitIds as too-much-info, add UL/LI tags to allow text to wrap, htmlEncode the commit-comment, also substitute
for newlines in comment
diff --git git-reports.c git-reports.c
index 178b3e1..3b1cf55 100644
--- git-reports.c
+++ git-reports.c
@@ -381,7 +381,7 @@
fprintf(h, "switch to files view, user index\n");
fprintf(h, "
%s to %s (%s to %s) %s
\n", startTag, endTag, startDate, endDate, title);
-fprintf(h, "\n");
+fprintf(h, "
\n");
int userLinesChanged = 0;
@@ -397,9 +397,15 @@
{
if (sameString(c->author, u))
{
- fprintf(h, "%s\n", c->commitId);
- fprintf(h, "%s\n", c->date);
- fprintf(h, "%s\n", c->comment);
+ //fprintf(h, "%s\n", c->commitId);
+ //fprintf(h, "%s\n", c->date);
+
+ char *cc = htmlEncode(c->comment);
+ char *ccc = replaceChars(cc, "\n", "
\n");
+ fprintf(h, "- %s\n", ccc);
+ freeMem(cc);
+ freeMem(ccc);
+
makeDiffAndSplit(c, u, FALSE);
makeDiffAndSplit(c, u, TRUE);
for(f = c->files; f; f = f->next)
@@ -462,10 +468,10 @@
safef(path, sizeof(path), "%s.diff", relativePath);
fDiff = cloneString(path);
- // make file view links
- fprintf(h, " %s - lines changed %d, "
+ // make file diff links
+ fprintf(h, "\n"
, f->path, f->linesChanged
, cHtml, cDiff, fHtml, fDiff);
@@ -480,7 +486,7 @@
fprintf(h, "\n");
}
}
-fprintf(h, "\n");
+fprintf(h, "
\n");
fprintf(h, "switch to files view, user index\n");
fprintf(h, "