aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
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);
}