summary refs log tree commit diff stats
path: root/git-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/post-receive3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-hooks/post-receive b/git-hooks/post-receive
index f490cf9..c7d22e8 100755
--- a/git-hooks/post-receive
+++ b/git-hooks/post-receive
@@ -43,6 +43,7 @@ from pygments.formatters import HtmlFormatter
 from pygments.lexers import get_lexer_for_filename
 from pygments.lexers import guess_lexer
 from pygments.lexers import guess_lexer_for_filename
+from pygments.lexers.special import TextLexer
 import pygments.util
 
 @dataclasses.dataclass
@@ -242,7 +243,7 @@ while todocommits:
         f.write("<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>commit</title><body><a href=\"./tree\">view tree</a><ul>")
         for parent in c.parents:
             f.write("<li><a href=\"../{}\">{}</a></li>".format(str(parent.id), str(parent.id)))
-        f.write("</ul></body></html>")
+        f.write("</ul><pre id=\"message\">{}</pre></body></html>".format(highlight(c.message, TextLexer(), HtmlFormatter())))
     todotrees.add(c.tree)
     todocommits.update(c.parents)
     linktarget = get_relative(path, tree)