X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/06fe0c2f47eaf467db8ab1443e61dfa1c280f30a..2c2047ff67a1e0053f95776e5079e432f69cea54:/ui-tree.c diff --git a/ui-tree.c b/ui-tree.c index 84930cb..54dcdbe 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -23,7 +23,9 @@ static int print_entry(const unsigned char *sha1, const char *base, return 0; } name = xstrdup(pathname); - html(""); + html(""); + html_filemode(mode); + html(""); if (S_ISDIR(mode)) { html("
%li", size); - htmlf("%06o", mode); html("\n"); free(name); return 0; @@ -62,9 +63,11 @@ void cgit_print_tree(const char *hex) html("

Tree content

\n"); html("\n"); - html(""); - html(""); - html("\n"); + html(""); + html(""); + html(""); + html(""); + html("\n"); read_tree_recursive(tree, "", 0, 1, NULL, print_entry); html("
NameSizeMode
ModeNameSize
\n"); }