From 93c2338a13b2bcc91940ab49b21ecd200be7fc27 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 21 Aug 2021 08:40:14 -0300 Subject: src/gistatic.c: Suppress "Download" and "Commit message" columns from tags table in refs.html --- src/gistatic.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'src/gistatic.c') diff --git a/src/gistatic.c b/src/gistatic.c index 26c5166..81eb5ed 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -1534,7 +1534,6 @@ static int repo_refs_tags_each( int ret = 0; struct git_commit *commit = NULL; char *encoded_name = NULL; - char *encoded_summary = NULL; char *encoded_author = NULL; char *date = NULL; int e; @@ -1556,8 +1555,6 @@ static int repo_refs_tags_each( goto cleanup; } - const char *const sha = git_oid_tostr_s(oid); - assert(sha); const char *const summary = git_commit_summary(commit); assert(summary); const struct git_signature *const author = git_commit_author(commit); @@ -1565,7 +1562,6 @@ static int repo_refs_tags_each( if ( !(encoded_name = escape_html(name)) - || !(encoded_summary = escape_html(summary)) || !(encoded_author = escape_html(author->name)) || !(date = formatted_date(author->when.time)) ) { @@ -1581,15 +1577,7 @@ static int repo_refs_tags_each( " \n" " %s\n" " \n" - " \n" - " \n" - " \n" - " %s\n" - " \n" - " \n" - " \n" - " %s-%s.tar.xz\n" - " (sig)\n" + " (tarball, sig)\n" " \n" " \n" " %s\n" @@ -1601,10 +1589,6 @@ static int repo_refs_tags_each( "", encoded_name, encoded_name, - sha, - encoded_summary, - project_name, - encoded_name, project_name, encoded_name, project_name, @@ -1621,7 +1605,6 @@ static int repo_refs_tags_each( cleanup: free(date); free(encoded_author); - free(encoded_summary); free(encoded_name); git_commit_free(commit); return ret; @@ -1807,18 +1790,10 @@ static int repo_refs_write( " \n" " %s\n" " \n" - " \n" - " %s\n" - " \n" - " \n" - " %s\n" - " \n" " \n" " \n" " \n", _(MSG_THEAD_TAG), - _(MSG_THEAD_COMMITMSG), - _(MSG_THEAD_DOWNLOAD), _(MSG_THEAD_AUTHOR), _(MSG_THEAD_DATE) ); @@ -1885,7 +1860,6 @@ static int repo_tarballs_write( ) { int ret = 0; int e; - (void)repo; char *tarballs_dir = NULL; struct git_reference_iterator *ref_iter = NULL; -- cgit v1.2.3