Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
int count_slashes(const char *s)
119
{
120
int cnt = 0;
121
while (*s)
122
if (*s++ ==
'/'
)
123
cnt++;
124
return cnt;
125
}
126
127
int git_fspathcmp(const char *a, const char *b)
128
{
Callers
4
guess_p_value
Function · 0.85
get_up_path
Function · 0.85
append_matching_ref
Function · 0.85
append_one_rev
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected