diff options
author | EuAndreh <eu@euandre.org> | 2021-08-21 08:40:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-22 11:35:27 -0300 |
commit | 93c2338a13b2bcc91940ab49b21ecd200be7fc27 (patch) | |
tree | 47df59dab6eb3c2340b8c0e26f4d0516c9fafdeb /src/gistatic.c | |
parent | src/gistatic.c: repo_refs_({tag => tags}|{branch => branches})_each (diff) | |
download | gistatic-93c2338a13b2bcc91940ab49b21ecd200be7fc27.tar.gz gistatic-93c2338a13b2bcc91940ab49b21ecd200be7fc27.tar.xz |
src/gistatic.c: Suppress "Download" and "Commit message" columns from tags table in refs.html
Diffstat (limited to 'src/gistatic.c')
-rw-r--r-- | src/gistatic.c | 28 |
1 files changed, 1 insertions, 27 deletions
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( " <a href=\"tag/%s.html\">\n" " %s\n" " </a>\n" - " </td>\n" - " <td>\n" - " <a href=\"commit/%s.html\">\n" - " %s\n" - " </a>\n" - " </td>\n" - " <td>\n" - " <a href=\"tarballs/%s-%s.tar.xz\">%s-%s.tar.xz</a>\n" - " (<a href=\"tarballs/%s-%s.tar.xz.asc\">sig</a>)\n" + " (<a href=\"tarballs/%s-%s.tar.gz\">tarball</a>, <a href=\"tarballs/%s-%s.tar.gz.asc\">sig</a>)\n" " </td>\n" " <td>\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( " <th>\n" " %s\n" " </th>\n" - " <th>\n" - " %s\n" - " </th>\n" - " <th>\n" - " %s\n" - " </th>\n" " </tr>\n" " </thead>\n" " <tbody>\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; |