| 1338 | } |
| 1339 | |
| 1340 | static void get_cvs_excludes(uint32 rflags) |
| 1341 | { |
| 1342 | static int initialized = 0; |
| 1343 | char *p, fname[MAXPATHLEN]; |
| 1344 | |
| 1345 | if (initialized) |
| 1346 | return; |
| 1347 | initialized = 1; |
| 1348 | |
| 1349 | parse_filter_str(&cvs_filter_list, default_cvsignore(), |
| 1350 | rule_template(rflags | (protocol_version >= 30 ? FILTRULE_PERISHABLE : 0)), |
| 1351 | 0); |
| 1352 | |
| 1353 | p = module_id >= 0 && lp_use_chroot(module_id) ? "/" : getenv("HOME"); |
| 1354 | if (p && pathjoin(fname, MAXPATHLEN, p, ".cvsignore") < MAXPATHLEN) |
| 1355 | parse_filter_file(&cvs_filter_list, fname, rule_template(rflags), 0); |
| 1356 | |
| 1357 | parse_filter_str(&cvs_filter_list, getenv("CVSIGNORE"), rule_template(rflags), 0); |
| 1358 | } |
| 1359 | |
| 1360 | const filter_rule *rule_template(uint32 rflags) |
| 1361 | { |
no test coverage detected