stagit-fork

static git page generator - fork with some customisations
git clone https://git.ortlepp.eu/stagit-fork.git/
Log | Files | Refs | README | LICENSE

commit 6537d1b01a2da2f2e406f72802c0b21c2e8fd182
parent 4c8ab994c313a4cc218b2578c0d123bb67244df5
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat, 29 Feb 2020 15:46:37 +0100

Removed owner from repo list

Diffstat:
Mstagit-index.c | 17+----------------
1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -77,7 +77,7 @@ writeheader(FILE *fp) fputs("</span></td></tr><tr><td></td><td>\n" "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n" "<table id=\"index\"><thead>\n" - "<tr><th>Name</th><th>Description</th><th>Owner</th>" + "<tr><th>Name</th><th>Description</th>" "<th>Last commit</th></tr>" "</thead><tbody>\n", fp); } @@ -124,8 +124,6 @@ writelog(FILE *fp) fputs("</a></td><td>", fp); xmlencode(fp, description, strlen(description)); fputs("</td><td>", fp); - xmlencode(fp, owner, strlen(owner)); - fputs("</td><td>", fp); if (author) printtimeshort(fp, &(author->when)); fputs("</td></tr>", fp); @@ -195,19 +193,6 @@ main(int argc, char *argv[]) fclose(fp); } - /* read owner or .git/owner */ - joinpath(path, sizeof(path), repodir, "owner"); - if (!(fp = fopen(path, "r"))) { - joinpath(path, sizeof(path), repodir, ".git/owner"); - fp = fopen(path, "r"); - } - owner[0] = '\0'; - if (fp) { - if (!fgets(owner, sizeof(owner), fp)) - owner[0] = '\0'; - owner[strcspn(owner, "\n")] = '\0'; - fclose(fp); - } writelog(stdout); } writefooter(stdout);