| 900 | } |
| 901 | |
| 902 | static bool disc_has(const cbm_file_info_t *files, int count, const char *rel_path) { |
| 903 | for (int i = 0; i < count; i++) { |
| 904 | if (strcmp(files[i].rel_path, rel_path) == 0) { |
| 905 | return true; |
| 906 | } |
| 907 | } |
| 908 | return false; |
| 909 | } |
| 910 | |
| 911 | /* A .gitignore never hides a file git tracks: git applies ignore rules to |
| 912 | * untracked paths only. cluster-api's nested `.gitignore` line `manager`, |