From a6b29cbbd97fbc2b297d55675422d3b2207b5791 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 5 Jan 2016 21:42:10 +0100 Subject: [PATCH] make hunk line itself a link --- stagit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stagit.c b/stagit.c index aad7386..22b639e 100644 --- a/stagit.c +++ b/stagit.c @@ -409,9 +409,9 @@ printshowfile(struct commitinfo *ci) if (git_patch_get_hunk(&hunk, &nhunklines, patch, j)) break; - fputs("", fp); + fprintf(fp, "", j, j); xmlencode(fp, hunk->header, hunk->header_len); - fputs("", fp); + fputs("", fp); for (k = 0; ; k++) { if (git_patch_get_line_in_hunk(&line, patch, j, k)) -- libgit2 1.1.1