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

Function submodule_path_match

dir.c:624–635  ·  view source on GitHub ↗

* Check if a submodule is a superset of the pathspec */

Source from the content-addressed store, hash-verified

622 * Check if a submodule is a superset of the pathspec
623 */
624int submodule_path_match(struct index_state *istate,
625 const struct pathspec *ps,
626 const char *submodule_name,
627 char *seen)
628{
629 int matched = match_pathspec_with_flags(istate, ps, submodule_name,
630 strlen(submodule_name),
631 0, seen,
632 DO_MATCH_DIRECTORY |
633 DO_MATCH_LEADING_PATHSPEC);
634 return matched;
635}
636
637int report_path_error(const char *ps_matched,
638 const struct pathspec *pathspec)

Callers 1

grep_cacheFunction · 0.85

Calls 1

Tested by

no test coverage detected