aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-04-02 21:00:51 +0200
committerjustanothercatgirl <sotov@twistea.su>2025-04-02 21:00:51 +0200
commitd946c8cf11385f5766e827ae71b3fc798750a335 (patch)
tree52105e039563e264cbaf84a0bda6cd1df7945b30 /ui-tree.c
parent09d24d7cd0b7e85633f2f43808b12871bb209d69 (diff)
Added default_index config parameter.HEADmaster
Note: currently breaks repos that contain no readme
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 3d8a2eb..9fa265b 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -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);
}