Remove owner in stagit-index. - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit a54e5a30a94d08d12ea3ce894b846ad87379d4a4 DIR parent 553dc545a508e85da41fafb33f61b669d3cfd656 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 14 Jun 2017 19:33:36 +0000 Remove owner in stagit-index. The owner is taking too much space for not enough information. Diffstat: M stagit-index.c | 18 ------------------ 1 file changed, 0 insertions(+), 18 deletions(-) --- DIR diff --git a/stagit-index.c b/stagit-index.c @@ -20,7 +20,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 @@ -117,7 +116,6 @@ writeheader(FILE *fp) fprintf(fp, "%-20.20s ", "Name"); fprintf(fp, "%-50.50s ", "Description"); - fprintf(fp, "%-25.25s ", "Owner"); fprintf(fp, "%-16.16s\n", "Last commit"); } @@ -164,9 +162,6 @@ writelog(FILE *fp) trim(buf, sizeof(buf), description); printutf8pad(fp, buf, 50, ' '); fputs(" ", fp); - trim(buf, sizeof(buf), owner); - printutf8pad(fp, buf, 25, ' '); - fputs(" ", fp); if (author) printtimeshort(fp, &(author->when)); trim(buf, sizeof(buf), stripped_name); @@ -243,19 +238,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);