mingw: handle GITPERLLIB in t0021 in a Windows-compatible way
[git.git] / t / helper / test-dump-fsmonitor.c
blobad452707e88b609d4d39e6f12bff9f73df2271c7
1 #include "cache.h"
3 int cmd_main(int ac, const char **av)
5 struct index_state *istate = &the_index;
6 int i;
8 setup_git_directory();
9 if (do_read_index(istate, get_index_file(), 0) < 0)
10 die("unable to read index file");
11 if (!istate->fsmonitor_last_update) {
12 printf("no fsmonitor\n");
13 return 0;
15 printf("fsmonitor last update %"PRIuMAX"\n", (uintmax_t)istate->fsmonitor_last_update);
17 for (i = 0; i < istate->cache_nr; i++)
18 printf((istate->cache[i]->ce_flags & CE_FSMONITOR_VALID) ? "+" : "-");
20 return 0;