1#include "cache.h"
2#include "pack.h"
34
static int verify_one_pack(char *arg)
5{
6struct packed_git *g = add_packed_git(arg, strlen(arg));
7if (!g)
8return -1;
9return verify_pack(g);
10}
1112
int main(int ac, char **av)
13{
14int errs = 0;
1516
while (1 < ac) {
17char path[PATH_MAX];
18strcpy(path, av[1]);
19if (verify_one_pack(path))
20errs++;
21else
22printf("%s: OK\n", av[1]);
23ac--; av++;
24}
25return !!errs;
26}