mailinfo: introduce "struct mailinfo" to hold globals
[gitweb.git] / builtin / count-objects.c
index e47ef0b1af06a1abd63f7818c363db6c859a9bf6..ad0c79954aa0dfb8b9918500d08dd841d19d4ab3 100644 (file)
@@ -70,8 +70,10 @@ int cmd_count_objects(int argc, const char **argv, const char *prefix)
        /* we do not take arguments other than flags for now */
        if (argc)
                usage_with_options(count_objects_usage, opts);
-       if (verbose)
+       if (verbose) {
                report_garbage = real_report_garbage;
+               report_linked_checkout_garbage();
+       }
 
        for_each_loose_file_in_objdir(get_object_directory(),
                                      count_loose, count_cruft, NULL, NULL);