| 1290 | /* ── .cbmignore negation vs built-in skip dirs (issue #500) ────── */ |
| 1291 | |
| 1292 | static bool discover_excluded_contains(char **excluded, int count, const char *rel_path) { |
| 1293 | for (int i = 0; i < count; i++) { |
| 1294 | if (strcmp(excluded[i], rel_path) == 0) { |
| 1295 | return true; |
| 1296 | } |
| 1297 | } |
| 1298 | return false; |
| 1299 | } |
| 1300 | |
| 1301 | /* A "!obj/" negation in .cbmignore must un-skip the built-in ALWAYS_SKIP |
| 1302 | * "obj" dir so files inside it get discovered — and the un-skipped dir must |