@ -160,9 +160,28 @@ static int fork_with_pipe(const char **argv, int *in, int *out)
@@ -160,9 +160,28 @@ static int fork_with_pipe(const char **argv, int *in, int *out)
return pid;
}
static int list_refs(struct ref_list *r, int argc, const char **argv)
{
int i;
for (i = 0; i < r->nr; i++) {
if (argc > 1) {
int j;
for (j = 1; j < argc; j++)
if (!strcmp(r->list[i].name, argv[j]))
break;
if (j == argc)
continue;
}
printf("%s %s\n", sha1_to_hex(r->list[i].sha1),
r->list[i].name);
}
return 0;
}
#define PREREQ_MARK (1u<<16)
static int verify_bundle(struct bundle_header *header)
static int verify_bundle(struct bundle_header *header, int verbose)
{
/*
* Do fast check, then if any prereqs are missing then go line by line
@ -218,27 +237,24 @@ static int verify_bundle(struct bundle_header *header)
@@ -218,27 +237,24 @@ static int verify_bundle(struct bundle_header *header)