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

Function match_leading_pathspec

dir.c:611–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611int match_leading_pathspec(struct index_state *istate,
612 const struct pathspec *ps,
613 const char *name, int namelen,
614 int prefix, char *seen, int is_dir)
615{
616 unsigned flags = is_dir ? DO_MATCH_DIRECTORY | DO_MATCH_LEADING_PATHSPEC : 0;
617 return match_pathspec_with_flags(istate, ps, name, namelen,
618 prefix, seen, flags);
619}
620
621/**
622 * Check if a submodule is a superset of the pathspec

Callers 1

read_directory_contentsFunction · 0.85

Calls 1

Tested by

no test coverage detected