Merge branch 'jc/count' into next
authorJunio C Hamano <junkio@cox.net>
Wed, 3 May 2006 06:03:52 +0000 (23:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 May 2006 06:03:52 +0000 (23:03 -0700)
* jc/count:
  builtin-count-objects: open packs when running -v

builtin-count.c

index 0256369..5ee72df 100644 (file)
@@ -105,6 +105,8 @@ int cmd_count_objects(int ac, const char **av, char **ep)
        }
        if (verbose) {
                struct packed_git *p;
+               if (!packed_git)
+                       prepare_packed_git();
                for (p = packed_git; p; p = p->next) {
                        if (!p->pack_local)
                                continue;