]> git.ipfire.org Git - thirdparty/git.git/blame - t/helper/test-read-cache.c
has_sha1_file: don't bother if we are not in a repository
[thirdparty/git.git] / t / helper / test-read-cache.c
CommitLineData
1ecb5ff1
RS
1#include "cache.h"
2
3f2e2297 3int cmd_main(int argc, const char **argv)
1ecb5ff1
RS
4{
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();
11 }
12 return 0;
13}