t / helper / test-read-cache.con commit Merge branch 'bp/fsmonitor-prime-index' (7a79d7e)
   1#include "test-tool.h"
   2#include "cache.h"
   3
   4int 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}