| 2733 | } |
| 2734 | |
| 2735 | int has_racy_timestamp(struct index_state *istate) |
| 2736 | { |
| 2737 | int entries = istate->cache_nr; |
| 2738 | int i; |
| 2739 | |
| 2740 | for (i = 0; i < entries; i++) { |
| 2741 | struct cache_entry *ce = istate->cache[i]; |
| 2742 | if (is_racy_timestamp(istate, ce)) |
| 2743 | return 1; |
| 2744 | } |
| 2745 | return 0; |
| 2746 | } |
| 2747 | |
| 2748 | void repo_update_index_if_able(struct repository *repo, |
| 2749 | struct lock_file *lockfile) |
no test coverage detected