From 5cd2bf7e7f3f3daf6107cd3a269bad78e342de70 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Fri, 12 Jan 2007 00:46:17 +0100 Subject: WIP: add paths/backlinks to tree/blobview --- ui-tree.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index 54dcdbe..ed9f05e 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -29,11 +29,16 @@ static int print_entry(const unsigned char *sha1, const char *base, if (S_ISDIR(mode)) { html("
"); html_txt(name); @@ -46,7 +51,7 @@ static int print_entry(const unsigned char *sha1, const char *base, return 0; } -void cgit_print_tree(const char *hex) +void cgit_print_tree(const char *hex, char *path) { struct tree *tree; unsigned char sha1[20]; @@ -62,6 +67,7 @@ void cgit_print_tree(const char *hex) } html("

Tree content

\n"); + html_txt(path); html("\n"); html(""); html(""); -- cgit v1.2.3-59-g8ed1b
Mode