[PATCH v2 4/5] ui-tree: use the line range highlight script
Andy Green
andy at warmcat.com
Thu Jun 21 11:35:04 CEST 2018
This allows it to work in /tree/ and /source/ URLs.
Signed-off-by: Andy Green <andy at warmcat.com>
---
ui-tree.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui-tree.c b/ui-tree.c
index e4cb558..b66cabe 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -226,6 +226,8 @@ static void print_object(const struct object_id *oid, char *path, const char *ba
} else
print_buffer(basename, buf, size);
+ cgit_emit_line_range_highlight_script(0);
+
free(buf);
free(mimetype);
}
More information about the CGit
mailing list