aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/ls-tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/ls-tree.c b/builtin/ls-tree.c
index 5f7c84950c..0a28f32ccb 100644
--- a/builtin/ls-tree.c
+++ b/builtin/ls-tree.c
@@ -92,14 +92,16 @@ static int show_tree(const struct object_id *oid, struct strbuf *base,
else
xsnprintf(size_text, sizeof(size_text),
"%"PRIuMAX, (uintmax_t)size);
- } else
+ } else {
xsnprintf(size_text, sizeof(size_text), "-");
+ }
printf("%06o %s %s %7s\t", mode, type,
find_unique_abbrev(oid, abbrev),
size_text);
- } else
+ } else {
printf("%06o %s %s\t", mode, type,
find_unique_abbrev(oid, abbrev));
+ }
}
baselen = base->len;
strbuf_addstr(base, pathname);