SMOLNET PORTAL home about changes
iwhen a tags.gph file exists in the current directory then link it in the menu - stagit-gopher - A git gopher frontend. (mirror)	Err	bitreich.org	70
hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/	URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/	bitreich.org	70
1Log	/scm/stagit-gopher/log.gph	bitreich.org	70
1Files	/scm/stagit-gopher/files.gph	bitreich.org	70
1Refs	/scm/stagit-gopher/refs.gph	bitreich.org	70
1Tags	/scm/stagit-gopher/tag	bitreich.org	70
1README	/scm/stagit-gopher/file/README.gph	bitreich.org	70
1LICENSE	/scm/stagit-gopher/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit ab46ca27fc26888dc6e061c614d085114eb7b1ea	/scm/stagit-gopher/commit/ab46ca27fc26888dc6e061c614d085114eb7b1ea.gph	bitreich.org	70
1parent b1f0c95f2975540809eb6ff3bcd04023b71a87de	/scm/stagit-gopher/commit/b1f0c95f2975540809eb6ff3bcd04023b71a87de.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Fri,  9 Feb 2018 16:09:10 +0100	Err	bitreich.org	70
i	Err	bitreich.org	70
iwhen a tags.gph file exists in the current directory then link it in the menu	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M stagit-gopher.1                     |       3 +++	Err	bitreich.org	70
i  M stagit-gopher.c                     |       7 ++++++-	Err	bitreich.org	70
i	Err	bitreich.org	70
i2 files changed, 9 insertions(+), 1 deletion(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/stagit-gopher.1 b/stagit-gopher.1	/scm/stagit-gopher/file/stagit-gopher.1.gph	bitreich.org	70
i@@ -93,6 +93,9 @@ primary clone url of the repository, for example: git://git.2f30.org/stagit	Err	bitreich.org	70
i .Pp	Err	bitreich.org	70
i When a README or LICENSE file exists in HEAD or a .gitmodules submodules file	Err	bitreich.org	70
i exists in HEAD a direct link in the index is made.	Err	bitreich.org	70
i+.Pp	Err	bitreich.org	70
i+When a tags.gph file exists in the current directory it is linked in the	Err	bitreich.org	70
i+index as a "Tags" link.	Err	bitreich.org	70
i .Sh SEE ALSO	Err	bitreich.org	70
i .Xr stagit-gopher-index 1	Err	bitreich.org	70
i .Sh AUTHORS	Err	bitreich.org	70
1diff --git a/stagit-gopher.c b/stagit-gopher.c	/scm/stagit-gopher/file/stagit-gopher.c.gph	bitreich.org	70
i@@ -58,7 +58,7 @@ static char *name = "";	Err	bitreich.org	70
i static char *strippedname = "";	Err	bitreich.org	70
i static char description[255];	Err	bitreich.org	70
i static char cloneurl[1024];	Err	bitreich.org	70
i-static int haslicense, hasreadme, hassubmodules;	Err	bitreich.org	70
i+static int haslicense, hasreadme, hassubmodules, hastagsgph;	Err	bitreich.org	70
i static long long nlogcommits = -1; /* < 0 indicates not used */	Err	bitreich.org	70
i 	Err	bitreich.org	70
i /* cache */	Err	bitreich.org	70
i@@ -447,6 +447,8 @@ writeheader(FILE *fp, const char *title)	Err	bitreich.org	70
i         fprintf(fp, "[1|Log|%s/log.gph|server|port]\n", relpath);	Err	bitreich.org	70
i         fprintf(fp, "[1|Files|%s/files.gph|server|port]\n", relpath);	Err	bitreich.org	70
i         fprintf(fp, "[1|Refs|%s/refs.gph|server|port]\n", relpath);	Err	bitreich.org	70
i+        if (hastagsgph)	Err	bitreich.org	70
i+                fprintf(fp, "[1|Tags|%s/tags.gph|server|port]\n", relpath);	Err	bitreich.org	70
i         if (hassubmodules)	Err	bitreich.org	70
i                 fprintf(fp, "[1|Submodules|%s/file/.gitmodules.gph|server|port]\n", relpath);	Err	bitreich.org	70
i         if (hasreadme)	Err	bitreich.org	70
i@@ -1191,6 +1193,9 @@ main(int argc, char *argv[])	Err	bitreich.org	70
i                 fclose(fpread);	Err	bitreich.org	70
i         }	Err	bitreich.org	70
i 	Err	bitreich.org	70
i+        /* check if tags.gph file exists */	Err	bitreich.org	70
i+        hastagsgph = (access("tags.gph", F_OK) == 0);	Err	bitreich.org	70
i+	Err	bitreich.org	70
i         /* check LICENSE */	Err	bitreich.org	70
i         haslicense = (!git_revparse_single(&obj, repo, "HEAD:LICENSE") &&	Err	bitreich.org	70
i                 git_object_type(obj) == GIT_OBJ_BLOB);	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/stagit-gopher/commit/ab46ca27...
Content-Typetext/plain; charset=utf-8