git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit 677ae4a2ad1419ec1cf891ed245c6ca8a5a1e1e1 parent 9fdc1da04d8556f06856debb39a598e670860a54 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 5 Jan 2016 21:03:39 +0100 fix newline after header Diffstat:
| M | stagit.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c @@ -410,7 +410,7 @@ printshowfile(struct commitinfo *ci) break; fputs("<span class=\"h\">", fp); - xmlencode(fp, hunk->header, strcspn(hunk->header, "\n")); + xmlencode(fp, hunk->header, hunk->header_len); fputs("</span>", fp); for (k = 0; ; k++) {