make hunk line itself a link - stagit-gopher - A git gopher frontend. (mirror) | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit a6b29cbbd97fbc2b297d55675422d3b2207b5791 | |
parent 99a8b8a2963a1dec98dd28f86dccc83d41130c60 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 5 Jan 2016 21:42:10 +0100 | |
make hunk line itself a link | |
Diffstat: | |
M stagit.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git 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("<span class=\"h\">", fp); | |
+ fprintf(fp, "<a href=\"#h%zu\" id=\"h%zu\" class=\"h\"… | |
xmlencode(fp, hunk->header, hunk->header_len); | |
- fputs("</span>", fp); | |
+ fputs("</a>", fp); | |
for (k = 0; ; k++) { | |
if (git_patch_get_line_in_hunk(&line, patch, j… |