| 3519 | } |
| 3520 | |
| 3521 | static int verify_index_match(struct apply_state *state, |
| 3522 | const struct cache_entry *ce, |
| 3523 | struct stat *st) |
| 3524 | { |
| 3525 | if (S_ISGITLINK(ce->ce_mode)) { |
| 3526 | if (!S_ISDIR(st->st_mode)) |
| 3527 | return -1; |
| 3528 | return 0; |
| 3529 | } |
| 3530 | return ie_match_stat(state->repo->index, ce, st, |
| 3531 | CE_MATCH_IGNORE_VALID | CE_MATCH_IGNORE_SKIP_WORKTREE); |
| 3532 | } |
| 3533 | |
| 3534 | #define SUBMODULE_PATCH_WITHOUT_INDEX 1 |
| 3535 |
no test coverage detected