struct object_entry *delta;
};
+static int non_empty = 0;
static int incremental = 0;
static struct object_entry **sorted_by_sha, **sorted_by_type;
static struct object_entry *objects = NULL;
const char *arg = argv[i];
if (*arg == '-') {
+ if (!strcmp("--non-empty", arg)) {
+ non_empty = 1;
+ continue;
+ }
if (!strcmp("--incremental", arg)) {
incremental = 1;
continue;
}
add_object_entry(sha1, hash);
}
+ if (non_empty && !nr_objects)
+ return 0;
get_object_details();
fprintf(stderr, "Packing %d objects\n", nr_objects);