stagit

Personal stagit fork
git clone git://git.alexwennerberg.com/stagit
Log | Files | Refs | README | LICENSE

commit bcfc801dd6f617115c340370e14324cce4f3b42f
parent bcb16a70b471d63fc986674d095c3807b119bcef
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 23 Apr 2022 23:10:28 -0700

add special styl efor readme

Diffstat:
Mstagit.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -1002,9 +1002,11 @@ writeblob(git_object *obj, const char *fpath, const char *rpath, const char *fil if (git_blob_is_binary((git_blob *)obj)) fputs("<p>Binary file.</p>\n", fp); else if (!strcmp(filename,"README.md")) { + fputs("<div id='readme'>\n", fp); const char *s = git_blob_rawcontent((git_blob *)obj); const char *html = cmark_markdown_to_html(s, strlen(s), 0); fputs(html, fp); + fputs("</div>\n", fp); } else lc = writeblobhtml(fp, (git_blob *)obj);