From mboxrd@z Thu Jan 1 00:00:00 1970 From: ape at ape3000.com (Lauri Niskanen) Date: Wed, 18 Jan 2012 16:08:47 +0200 Subject: [PATCH 1/2] Added trailing slash to directories Message-ID: <1326895728-8825-1-git-send-email-ape@ape3000.com> - This only affects the tree view --- ui-tree.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ui-tree.c b/ui-tree.c index 442b6be..6428fec 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -158,6 +158,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, html_txt(name); html(""); } else if (S_ISDIR(mode)) { + name = strcat(name, "/"); cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, curr_rev, fullpath); } else { -- 1.7.8.3