#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"
#include "path.h"
#include "parse-options.h"
#include "quote.h"
#include "packfile.h"
#include "object-store-ll.h"
static unsigned long garbage;
static off_t size_garbage;
static int verbose;
static unsigned long loose, packed, packed_loose;
static off_t loose_size;
static const char *bits_to_msg(unsigned seen_bits)
{ … }
static void real_report_garbage(unsigned seen_bits, const char *path)
{ … }
static void loose_garbage(const char *path)
{ … }
static int count_loose(const struct object_id *oid, const char *path,
void *data UNUSED)
{ … }
static int count_cruft(const char *basename UNUSED, const char *path,
void *data UNUSED)
{ … }
static int print_alternate(struct object_directory *odb, void *data UNUSED)
{ … }
static char const * const count_objects_usage[] = …;
int cmd_count_objects(int argc,
const char **argv,
const char *prefix,
struct repository *repo UNUSED)
{ … }