| 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(-)
--- |
| @@ -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 |
| @@ -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]) && |