]> git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-read-cache.c
config/alias.txt: document alias accepting non-command first word
[thirdparty/git.git] / t / helper / test-read-cache.c
1 #include "test-tool.h"
2 #include "cache.h"
3
4 int cmd__read_cache(int argc, const char **argv)
5 {
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();
13 }
14 return 0;
15 }