line |
true |
false |
branch |
22
|
0 |
0 |
while (*len) { |
25
|
0 |
0 |
if (cp_len < 0) |
32
|
0 |
0 |
switch (codepoint) { |
70
|
0 |
0 |
if (next_hfs_char(&path, &len) != '.') |
73
|
0 |
0 |
for (i = 0; i < needle_len; i++) { |
75
|
0 |
0 |
if (c != needle[i]) |
79
|
0 |
0 |
if (next_hfs_char(&path, &len) != '\0') |
99
|
370 |
165 |
if (repo) |
102
|
1057 |
522 |
for (i = 0; i < reserved_len; i++) { |
105
|
836 |
221 |
if (len >= r->size && |
|
13 |
823 |
if (len >= r->size && |
112
|
522 |
13 |
if (!start) |
120
|
13 |
0 |
if (path[start] == '\\' || path[start] == ':') |
|
0 |
13 |
if (path[start] == '\\' || path[start] == ':') |
124
|
13 |
0 |
for (i = start; i < len; i++) { |
125
|
13 |
0 |
if (path[i] != ' ' && path[i] != '.') |
|
13 |
0 |
if (path[i] != ' ' && path[i] != '.') |
146
|
0 |
0 |
if (*c == '\0' || *c == ':') |
|
0 |
0 |
if (*c == '\0' || *c == ':') |
148
|
0 |
0 |
if (*c != ' ' && *c != '.') |
|
0 |
0 |
if (*c != ' ' && *c != '.') |
164
|
0 |
0 |
if (name[0] == '.' && len >= dotgit_len && |
|
0 |
0 |
if (name[0] == '.' && len >= dotgit_len && |
|
0 |
0 |
if (name[0] == '.' && len >= dotgit_len && |
170
|
0 |
0 |
if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' && |
|
0 |
0 |
if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' && |
|
0 |
0 |
if (!strncasecmp(name, dotgit_name, 6) && name[6] == '~' && |
171
|
0 |
0 |
name[7] >= '1' && name[7] <= '4') |
175
|
0 |
0 |
for (i = 0, saw_tilde = 0; i < 8; i++) { |
176
|
0 |
0 |
if (name[i] == '\0') { |
178
|
0 |
0 |
} else if (saw_tilde) { |
179
|
0 |
0 |
if (name[i] < '0' || name[i] > '9') |
|
0 |
0 |
if (name[i] < '0' || name[i] > '9') |
181
|
0 |
0 |
} else if (name[i] == '~') { |
182
|
0 |
0 |
if (name[i+1] < '1' || name[i+1] > '9') |
|
0 |
0 |
if (name[i+1] < '1' || name[i+1] > '9') |
185
|
0 |
0 |
} else if (i >= 6) { |
187
|
0 |
0 |
} else if ((unsigned char)name[i] > 127) { |
189
|
0 |
0 |
} else if (git__tolower(name[i]) != shortname_pfix[i]) { |
205
|
0 |
0 |
while (len > 0 && tolower(*str) == tolower(*prefix)) { |
|
0 |
0 |
while (len > 0 && tolower(*str) == tolower(*prefix)) { |
222
|
0 |
803 |
if (data->flags & GIT_PATH_REJECT_DOT_GIT_HFS) { |
223
|
0 |
0 |
if (!validate_dotgit_hfs(component, len)) |
231
|
535 |
268 |
if (data->flags & GIT_PATH_REJECT_DOT_GIT_NTFS) { |
232
|
0 |
535 |
if (!validate_dotgit_ntfs(data->repo, component, len)) |
243
|
803 |
0 |
if ((data->flags & GIT_PATH_REJECT_DOT_GIT_HFS) == 0 && |
|
268 |
535 |
if ((data->flags & GIT_PATH_REJECT_DOT_GIT_HFS) == 0 && |
244
|
0 |
268 |
(data->flags & GIT_PATH_REJECT_DOT_GIT_NTFS) == 0 && |
246
|
0 |
0 |
if (len >= 4 && |
|
0 |
0 |
if (len >= 4 && |
247
|
0 |
0 |
component[0] == '.' && |
248
|
0 |
0 |
(component[1] == 'g' || component[1] == 'G') && |
|
0 |
0 |
(component[1] == 'g' || component[1] == 'G') && |
249
|
0 |
0 |
(component[2] == 'i' || component[2] == 'I') && |
|
0 |
0 |
(component[2] == 'i' || component[2] == 'I') && |
250
|
0 |
0 |
(component[3] == 't' || component[3] == 'T')) { |
251
|
0 |
0 |
if (len == 4) |
276
|
351 |
112 |
if (repo && !protectHFS) |
|
351 |
0 |
if (repo && !protectHFS) |
278
|
463 |
0 |
if (!error && protectHFS) |
|
0 |
463 |
if (!error && protectHFS) |
281
|
351 |
112 |
if (repo) |
283
|
463 |
0 |
if (!error && protectNTFS) |
|
463 |
0 |
if (!error && protectNTFS) |
320
|
463 |
6766 |
if ((flags & GIT_PATH_REJECT_DOT_GIT)) |
324
|
6651 |
578 |
if ((flags & GIT_FS_PATH_REJECT_LONG_PATHS)) |
353
|
0 |
0 |
if (!(gitfile >= GIT_PATH_GITFILE_GITIGNORE && gitfile < ARRAY_SIZE(gitfiles))) { |