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

Function count_slashes

dir.c:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118int count_slashes(const char *s)
119{
120 int cnt = 0;
121 while (*s)
122 if (*s++ == '/')
123 cnt++;
124 return cnt;
125}
126
127int git_fspathcmp(const char *a, const char *b)
128{

Callers 4

guess_p_valueFunction · 0.85
get_up_pathFunction · 0.85
append_matching_refFunction · 0.85
append_one_revFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected