summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61fa309)
raw | patch | inline | side by side (parent: 61fa309)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Apr 2006 00:40:24 +0000 (17:40 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Apr 2006 00:40:24 +0000 (17:40 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
dump-cache-tree.c | patch | blob | history |
diff --git a/dump-cache-tree.c b/dump-cache-tree.c
index 01e8bff0ee0e750b433375b7d7eb72c641f23204..f6a19bac3d8d37f37535eac95ccfaaeb1acd842d 100644 (file)
--- a/dump-cache-tree.c
+++ b/dump-cache-tree.c
if (!it)
return;
if (it->entry_count < 0)
- printf("%-40s %s\n", "invalid", pfx);
+ printf("%-40s %s (%d subtrees)\n", "invalid", pfx,
+ it->subtree_nr);
else
- printf("%s %s (%d entries)\n",
+ printf("%s %s (%d entries, %d subtrees)\n",
sha1_to_hex(it->sha1),
- pfx, it->entry_count);
+ pfx, it->entry_count, it->subtree_nr);
for (i = 0; i < it->subtree_nr; i++) {
char path[PATH_MAX];
struct cache_tree_sub *down = it->down[i];