MCPcopy Index your code
hub / github.com/git/git / match_pathspec_with_flags

Function match_pathspec_with_flags

dir.c:585–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585static int match_pathspec_with_flags(struct index_state *istate,
586 const struct pathspec *ps,
587 const char *name, int namelen,
588 int prefix, char *seen, unsigned flags)
589{
590 int positive, negative;
591 positive = do_match_pathspec(istate, ps, name, namelen,
592 prefix, seen, flags);
593 if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive)
594 return positive;
595 negative = do_match_pathspec(istate, ps, name, namelen,
596 prefix, seen,
597 flags | DO_MATCH_EXCLUDE);
598 return negative ? 0 : positive;
599}
600
601int match_pathspec(struct index_state *istate,
602 const struct pathspec *ps,

Callers 4

match_pathspecFunction · 0.85
match_leading_pathspecFunction · 0.85
submodule_path_matchFunction · 0.85
treat_directoryFunction · 0.85

Calls 1

do_match_pathspecFunction · 0.85

Tested by

no test coverage detected