remove tags.gph support - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) 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 1db52961131a913a60e96889ae210daede9b44e6
 (DIR) parent 8dc7c20dfe3d6a8bb41d4f245e1bbe5965209b3b
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun,  3 Feb 2019 15:27:14 +0100
       
       remove tags.gph support
       
       Diffstat:
         M stagit-gopher.1                     |       3 ---
         M stagit-gopher.c                     |       6 ------
       
       2 files changed, 0 insertions(+), 9 deletions(-)
       ---
 (DIR) diff --git a/stagit-gopher.1 b/stagit-gopher.1
       @@ -93,9 +93,6 @@ primary clone url of the repository, for example: git://git.2f30.org/stagit
        .Pp
        When a README or LICENSE file exists in HEAD or a .gitmodules submodules file
        exists in HEAD a direct link in the index is made.
       -.Pp
       -When a tags.gph file exists in the current directory it is linked in the
       -index as a "Tags" link.
        .Sh SEE ALSO
        .Xr stagit-gopher-index 1
        .Sh AUTHORS
 (DIR) diff --git a/stagit-gopher.c b/stagit-gopher.c
       @@ -58,7 +58,6 @@ static char *name = "";
        static char *strippedname = "";
        static char description[255];
        static char cloneurl[1024];
       -static int hastagsgph;
        static char *submodules;
        static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:LICENSE.md", "HEAD:COPYING" };
        static char *license;
       @@ -472,8 +471,6 @@ writeheader(FILE *fp, const char *title)
                fprintf(fp, "[1|Log|%s/log.gph|server|port]\n", relpath);
                fprintf(fp, "[1|Files|%s/files.gph|server|port]\n", relpath);
                fprintf(fp, "[1|Refs|%s/refs.gph|server|port]\n", relpath);
       -        if (hastagsgph)
       -                fprintf(fp, "[1|Tags|%s/tags.gph|server|port]\n", relpath);
                if (submodules)
                        fprintf(fp, "[1|Submodules|%s/file/%s.gph|server|port]\n",
                                relpath, submodules);
       @@ -1235,9 +1232,6 @@ main(int argc, char *argv[])
                        fclose(fpread);
                }
        
       -        /* check if tags.gph file exists */
       -        hastagsgph = (access("tags.gph", F_OK) == 0);
       -
                /* check LICENSE */
                for (i = 0; i < sizeof(licensefiles) / sizeof(*licensefiles) && !license; i++) {
                        if (!git_revparse_single(&obj, repo, licensefiles[i]) &&