correct ...message_parse() and ...header_parse() to commit_..._parse()
authorChristian Thaeter <ct@pipapo.org>
Wed, 16 Jan 2008 13:20:55 +0000 (14:20 +0100)
committerChristian Thaeter <ct@pipapo.org>
Wed, 16 Jan 2008 13:20:55 +0000 (14:20 +0100)
src/log.c
src/object.c
src/object.h

index 0a27712..c61375b 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -195,6 +195,19 @@ webgit_log_content_action (struct webgit_query* query)
                               )
                         );
 
+      if (msg_flag)
+        html_list_append (table,
+                          html (
+                                html_tag ("tr"),
+                                html(html_tag ("td", html_attr ("colspan", "2")),
+                                     html(html_tag ("pre"),
+                                          webgit_commit_message_parse (commit)
+                                          ),
+                                     html (html_tag ("hr"))
+                                     )
+                                )
+                          );
+
 
 #if 0 /* traverse parents */
       struct commit *parent;
index 790bf43..c8943ce 100644 (file)
@@ -167,7 +167,7 @@ webgit_commit_committer_email_parse (struct commit* commit)
 }
 
 Html
-webgit_header_parse (struct commit* commit)
+webgit_commit_header_parse (struct commit* commit)
 {
   char* header = strstr (commit->buffer, "\n\n");
   if (!header)
@@ -183,7 +183,7 @@ webgit_header_parse (struct commit* commit)
 }
 
 Html
-webgit_message_parse (struct commit* commit)
+webgit_commit_message_parse (struct commit* commit)
 {
   char* header = strstr (commit->buffer, "\n\n");
   if (!header)
index 2a28e06..c18a4fb 100644 (file)
@@ -59,10 +59,10 @@ Html
 webgit_commit_committer_email_parse (struct commit* commit);
 
 Html
-webgit_header_parse (struct commit* commit);
+webgit_commit_header_parse (struct commit* commit);
 
 Html
-webgit_message_parse (struct commit* commit);
+webgit_commit_message_parse (struct commit* commit);
 
 Html
 webgit_object_commit_action (struct webgit_query* query, unsigned char* sha1);