MCPcopy Create free account
hub / github.com/git/git / verify_index_match

Function verify_index_match

apply.c:3521–3532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3519}
3520
3521static 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

Callers 2

load_currentFunction · 0.85
check_preimageFunction · 0.85

Calls 1

ie_match_statFunction · 0.85

Tested by

no test coverage detected