Delete check-racy.c

This is git-checy-racy command, added a long time ago [1] and was never part of the default build. Naturally after some makefile changes [2], git-check-racy was no longer recognized as a build target. Even if it compiles to day, it will not link after the introduction of common-main.c [3]. Racy index has not been a problem for a long time [4]. It's time to let this code go. I briefly consider if check-racy should be part of test-tool. But I don't think it's worth the effort. [1] 42f774063d (Add check program "git-check-racy" - 2006-08-15) [2] c373991375 (Makefile: list generated object files in OBJECTS - 2010-01-26) [3] 3f2e2297b9 (add an extra level of indirection to main() - 2016-07-01) [4] I pretend I don't remember anything about the recent split-index's racy problem Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Feb 22, 2019 at 18:27 UTC c271dc28fd718655be8609c931b92833cc8f8c79
1 file changed -28
check-racy.c deleted
-28
@@ -1,28 +0,0 @@
1 -#include "cache.h"
2 -
3 -int main(int ac, char **av)
4 -{
5 - int i;
6 - int dirty, clean, racy;
7 -
8 - dirty = clean = racy = 0;
9 - read_cache();
10 - for (i = 0; i < active_nr; i++) {
11 - struct cache_entry *ce = active_cache[i];
12 - struct stat st;
13 -
14 - if (lstat(ce->name, &st)) {
15 - error_errno("lstat(%s)", ce->name);
16 - continue;
17 - }
18 -
19 - if (ce_match_stat(ce, &st, 0))
20 - dirty++;
21 - else if (ce_match_stat(ce, &st, CE_MATCH_RACY_IS_DIRTY))
22 - racy++;
23 - else
24 - clean++;
25 - }
26 - printf("dirty %d, clean %d, racy %d\n", dirty, clean, racy);
27 - return 0;
28 -}