commit ee8eebf5272a542d08a071e78ebb7fc822cd278d
parent b453a2f4a6243c31f0914c58d683dc208c7c03d0
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 9 May 2018 20:46:52 +0200
no owner
Diffstat:
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -19,7 +19,6 @@ static const char *relpath = "";
static char description[255] = "Repositories";
static char *name = "";
-static char owner[255];
#ifndef USE_PLEDGE
#define pledge(p1,p2) 0
@@ -86,7 +85,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);
}
@@ -134,8 +133,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);
@@ -201,19 +198,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);