istagit: fix hunk header, thanks uggedal for reporting! - 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 a89e756c9e59d41cb1e392616333be50b3960c71 /scm/stagit-gopher/commit/a89e756c9e59d41cb1e392616333be50b3960c71.gph bitreich.org 70 1parent 122af5015df461ee21f8543f1f503c884ef334c2 /scm/stagit-gopher/commit/122af5015df461ee21f8543f1f503c884ef334c2.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Mon, 4 Jan 2016 23:41:40 +0100 Err bitreich.org 70 i Err bitreich.org 70 istagit: fix hunk header, thanks uggedal for reporting! Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit.c | 4 +++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 3 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit.c b/stagit.c /scm/stagit-gopher/file/stagit.c.gph bitreich.org 70 i@@ -409,7 +409,9 @@ printshowfile(struct commitinfo *ci) Err bitreich.org 70 i if (git_patch_get_hunk(&hunk, &nhunklines, patch, j)) Err bitreich.org 70 i break; Err bitreich.org 70 i Err bitreich.org 70 i- fprintf(fp, "%s\n", hunk->header); Err bitreich.org 70 i+ fputs("", fp); Err bitreich.org 70 i+ xmlencode(fp, hunk->header, strcspn(hunk->header, "\n")); Err bitreich.org 70 i+ fputs("", fp); Err bitreich.org 70 i Err bitreich.org 70 i for (k = 0; ; k++) { Err bitreich.org 70 i if (git_patch_get_line_in_hunk(&line, patch, j, k)) Err bitreich.org 70 .