diff options
author | justanothercatgirl <sotov@twistea.su> | 2025-04-02 21:00:51 +0200 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2025-04-02 21:00:51 +0200 |
commit | d946c8cf11385f5766e827ae71b3fc798750a335 (patch) | |
tree | 52105e039563e264cbaf84a0bda6cd1df7945b30 /ui-tree.c | |
parent | 09d24d7cd0b7e85633f2f43808b12871bb209d69 (diff) |
Note: currently breaks repos that contain no readme
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -10,6 +10,7 @@ #include "cgit.h" #include "ui-tree.h" +// #include "ui-plain.h" #include "html.h" #include "ui-shared.h" @@ -127,10 +128,14 @@ static void print_object(const struct object_id *oid, const char *path, const ch return; } - if (is_binary) - print_binary_buffer(buf, size); - else + if (is_binary) { + //int print_object(const struct object_id *oid, const char *path) + //if (1) print_object(); + /*else*/ print_binary_buffer(buf, size); + } + else { print_text_buffer(basename, buf, size); + } free(buf); } |