commit 7870b366e47a740633b497bfd766aad6cb10ae64
parent 20ebc7fde46a38cf6f37bbf150835b5f11bdebe1
Author: Demonstrandum <moi@knutsen.co>
Date: Thu, 6 Aug 2020 02:00:57 +0100
Pass in filename not fpath.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/highlight b/highlight
@@ -36,4 +36,4 @@ print('<style>')
print(FORMAT.get_style_defs('.highlight'))
print('</style>')
-print("Lexer: {}.".format(lexer), file=stderr)
+print("Filename: {}; Lexer: {}.".format(filename, lexer), file=stderr)
diff --git a/stagit.c b/stagit.c
@@ -808,7 +808,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
if (git_blob_is_binary((git_blob *)obj)) {
fputs("<p>Binary file.</p>\n", fp);
} else {
- lc = writeblobhtml(fpath, fp, (git_blob *)obj);
+ lc = writeblobhtml(filename, fp, (git_blob *)obj);
if (ferror(fp))
err(1, "fwrite");
}