read-cache: regenerate shared index if necessary
[git.git] / t / helper / test-read-cache.c
blob2a7990efc31d042121122a17890c623d7714c128
1 #include "cache.h"
3 int cmd_main(int argc, const char **argv)
5 int i, cnt = 1;
6 if (argc == 2)
7 cnt = strtol(argv[1], NULL, 0);
8 for (i = 0; i < cnt; i++) {
9 read_cache();
10 discard_cache();
12 return 0;