summaryrefslogtreecommitdiff
path: root/check-racy.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete check-racy.cNguyễn Thái Ngọc Duy2019-02-221-28/+0
| | | | | | | | | | | | | | | | | | | | | | | 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>
* check-racy.c: use error_errno()Nguyễn Thái Ngọc Duy2016-05-091-1/+1
| | | | | Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* ce_match_stat, run_diff_files: use symbolic constants for readabilityJunio C Hamano2007-11-101-1/+1
| | | | | | | | | | | | | | | | | ce_match_stat() can be told: (1) to ignore CE_VALID bit (used under "assume unchanged" mode) and perform the stat comparison anyway; (2) not to perform the contents comparison for racily clean entries and report mismatch of cached stat information; using its "option" parameter. Give them symbolic constants. Similarly, run_diff_files() can be told not to report anything on removed paths. Also give it a symbolic constant for that. Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Add check program "git-check-racy"Junio C Hamano2006-08-151-0/+28
This will help counting the racily clean paths, but it should be useless for daily use. Do not even enable it in the makefile. Signed-off-by: Junio C Hamano <junkio@cox.net>