Diff options
Diffstat (limited to 'source')
-rw-r--r--source/ui-tag.c29
1 file changed, 4 insertions, 25 deletions
diff --git a/source/ui-tag.c b/source/ui-tag.c
index 246ff12..5fa8a17 100644
--- a/source/ui-tag.c
+++ b/source/ui-tag.c
@@ -11,7 +11,6 @@
#include "cgit.h"
#include "filter.h"
-#include "gpg-interface.h"
#include "html.h"
#include "parsing.h"
#include "shared.h"
@@ -72,31 +71,17 @@ static void print_download_row(const char *revname, const struct object *obj)
}
/*
- * Cutting the subject and the signature out terminates the message in place,
- * which is safe only because the caller frees it straight after. The blank
- * lines between the subject and the body are skipped, as the commit page skips
- * them.
+ * Cutting the subject out terminates the message in place, which is safe only
+ * because the caller frees it straight after. The blank lines between the
+ * subject and the body are skipped, as the commit page skips them.
*/
static void print_message(char *msg)
{
- char *newline, *body, *signature = NULL;
- size_t len, start;
+ char *newline, *body;
if (!msg)
return;
- // git finds the signature of any kind it can sign with, PGP, SSH or
- // X.509, and it goes in a fold after the message, since its armour
- // would otherwise run on for more lines than the message itself.
- len = strlen(msg);
- start = parse_signed_buffer(msg, len);
- if (start < len) {
- signature = xstrdup(msg + start);
- while (start > 0 && msg[start - 1] == '\n')
- start--;
- msg[start] = '\0';
- }
-
html("<div class='commit-subject'>");
newline = strchr(msg, '\n');
if (newline)
@@ -111,12 +96,6 @@ static void print_message(char *msg)
html_txt(body);
html("</div>");
}
- if (signature) {
- html("<details class='signature'><summary>Signature</summary><pre>");
- html_txt(signature);
- html("</pre></details>");
- free(signature);
- }
}
static void print_annotated_tag(const char *revname, const struct object_id *oid)