SMOLNET PORTAL home about changes
iin the diffstat prefix the type of change - 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 3be1a74e36d2b7bb6064fe671e39fca4b434a655	/scm/stagit-gopher/commit/3be1a74e36d2b7bb6064fe671e39fca4b434a655.gph	bitreich.org	70
1parent 89e38eb68278966aee0d5597a683a299af2484b1	/scm/stagit-gopher/commit/89e38eb68278966aee0d5597a683a299af2484b1.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Fri, 23 Nov 2018 12:56:05 +0100	Err	bitreich.org	70
i	Err	bitreich.org	70
iin the diffstat prefix the type of change	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M stagit-gopher.c                     |      13 ++++++++++++-	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 12 insertions(+), 1 deletion(-)	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@@ -569,6 +569,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)	Err	bitreich.org	70
i         git_patch *patch;	Err	bitreich.org	70
i         size_t nhunks, nhunklines, changed, add, del, total, i, j, k;	Err	bitreich.org	70
i         char buf[256], filename[256], linestr[32];	Err	bitreich.org	70
i+        int c;	Err	bitreich.org	70
i 	Err	bitreich.org	70
i         printcommit(fp, ci);	Err	bitreich.org	70
i 	Err	bitreich.org	70
i@@ -588,6 +589,16 @@ printshowfile(FILE *fp, struct commitinfo *ci)	Err	bitreich.org	70
i         for (i = 0; i < ci->ndeltas; i++) {	Err	bitreich.org	70
i                 delta = git_patch_get_delta(ci->deltas[i]->patch);	Err	bitreich.org	70
i 	Err	bitreich.org	70
i+                switch (delta->status) {	Err	bitreich.org	70
i+                case GIT_DELTA_ADDED:      c = 'A'; break;	Err	bitreich.org	70
i+                case GIT_DELTA_COPIED:     c = 'C'; break;	Err	bitreich.org	70
i+                case GIT_DELTA_DELETED:    c = 'D'; break;	Err	bitreich.org	70
i+                case GIT_DELTA_MODIFIED:   c = 'M'; break;	Err	bitreich.org	70
i+                case GIT_DELTA_RENAMED:    c = 'R'; break;	Err	bitreich.org	70
i+                case GIT_DELTA_TYPECHANGE: c = 'T'; break;	Err	bitreich.org	70
i+                default:                   c = ' '; break;	Err	bitreich.org	70
i+                }	Err	bitreich.org	70
i+	Err	bitreich.org	70
i                 if (strcmp(delta->old_file.path, delta->new_file.path)) {	Err	bitreich.org	70
i                         snprintf(filename, sizeof(filename), "%s -> %s",	Err	bitreich.org	70
i                                 delta->old_file.path, delta->new_file.path);	Err	bitreich.org	70
i@@ -595,7 +606,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)	Err	bitreich.org	70
i                 } else {	Err	bitreich.org	70
i                         utf8pad(buf, sizeof(buf), delta->old_file.path, 35, ' ');	Err	bitreich.org	70
i                 }	Err	bitreich.org	70
i-                fputs("  ", fp);	Err	bitreich.org	70
i+                fprintf(fp, "  %c ", c);	Err	bitreich.org	70
i                 gphtext(fp, buf, strlen(buf));	Err	bitreich.org	70
i 	Err	bitreich.org	70
i                 add = ci->deltas[i]->addcount;	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/stagit-gopher/commit/3be1a74e...
Content-Typetext/plain; charset=utf-8