SMOLNET PORTAL home about changes
iadd abbreviated commit hash to submodule file - 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 f1c1f8c810b311b9f786847dda2494c397cc1ddf	/scm/stagit-gopher/commit/f1c1f8c810b311b9f786847dda2494c397cc1ddf.gph	bitreich.org	70
1parent 17ce8c9ec7b5fc669fe3c1285c29b5b6fd1a409a	/scm/stagit-gopher/commit/17ce8c9ec7b5fc669fe3c1285c29b5b6fd1a409a.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Tue, 24 Nov 2020 01:23:12 +0100	Err	bitreich.org	70
i	Err	bitreich.org	70
iadd abbreviated commit hash to submodule file	Err	bitreich.org	70
i	Err	bitreich.org	70
isync the similar change as stagit.	Err	bitreich.org	70
i	Err	bitreich.org	70
iSmall change: do not align names of submodules anymore because of the	Err	bitreich.org	70
iabbreviated commit after the name. Just assume the submodule name is short.	Err	bitreich.org	70
i	Err	bitreich.org	70
iPatch for stagit was from: Oscar Benedito <oscar@oscarbenedito.com>	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M stagit-gopher.c                     |       8 +++++---	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 5 insertions(+), 3 deletions(-)	Err	bitreich.org	70
i---	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@@ -1051,7 +1051,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)	Err	bitreich.org	70
i         git_object *obj = NULL;	Err	bitreich.org	70
i         git_off_t filesize;	Err	bitreich.org	70
i         const char *entryname;	Err	bitreich.org	70
i-        char buf[256], filepath[PATH_MAX], entrypath[PATH_MAX];	Err	bitreich.org	70
i+        char buf[256], filepath[PATH_MAX], entrypath[PATH_MAX], oid[8];	Err	bitreich.org	70
i         size_t count, i, lc;	Err	bitreich.org	70
i         int r, ret;	Err	bitreich.org	70
i 	Err	bitreich.org	70
i@@ -1104,8 +1104,10 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)	Err	bitreich.org	70
i                 } else if (git_tree_entry_type(entry) == GIT_OBJ_COMMIT) {	Err	bitreich.org	70
i                         /* commit object in tree is a submodule */	Err	bitreich.org	70
i                         fputs("[1|m---------  ", fp);	Err	bitreich.org	70
i-                        utf8pad(buf, sizeof(buf), entrypath, 50, ' ');	Err	bitreich.org	70
i-                        gphlink(fp, buf, strlen(buf));	Err	bitreich.org	70
i+                        gphlink(fp, entrypath, strlen(entrypath));	Err	bitreich.org	70
i+                        fputs(" @ ", fp);	Err	bitreich.org	70
i+                        git_oid_tostr(oid, sizeof(oid), git_tree_entry_id(entry));	Err	bitreich.org	70
i+                        gphlink(fp, oid, strlen(oid));	Err	bitreich.org	70
i                         fprintf(fp, "|%s/file/.gitmodules.gph|server|port]\n", relpath);	Err	bitreich.org	70
i                         /* NOTE: linecount omitted */	Err	bitreich.org	70
i                 }	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/stagit-gopher/commit/f1c1f8c8...
Content-Typetext/plain; charset=utf-8