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

Function ps_strncmp

pathspec.h:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144void pathspec_magic_names(unsigned magic, struct strbuf *out);
145
146static inline int ps_strncmp(const struct pathspec_item *item,
147 const char *s1, const char *s2, size_t n)
148{
149 if (item->magic & PATHSPEC_ICASE)
150 return strncasecmp(s1, s2, n);
151 else
152 return strncmp(s1, s2, n);
153}
154
155static inline int ps_strcmp(const struct pathspec_item *item,
156 const char *s1, const char *s2)

Callers 7

match_entryFunction · 0.85
basecmpFunction · 0.85
do_matchFunction · 0.85
git_fnmatchFunction · 0.85
match_pathspec_itemFunction · 0.85
simplify_awayFunction · 0.85
exclude_matches_pathspecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected