Git 2.18-rc2
[git.git] / t / helper / test-read-cache.c
blobd674c88ba092d60366a14eaeccc9f4bc6f32660c
1 #include "test-tool.h"
2 #include "cache.h"
4 int cmd__read_cache(int argc, const char **argv)
6 int i, cnt = 1;
7 if (argc == 2)
8 cnt = strtol(argv[1], NULL, 0);
9 setup_git_directory();
10 for (i = 0; i < cnt; i++) {
11 read_cache();
12 discard_cache();
14 return 0;