| 2629 | } |
| 2630 | |
| 2631 | static void close_cached_dir(struct cached_dir *cdir) |
| 2632 | { |
| 2633 | if (cdir->fdir) |
| 2634 | closedir(cdir->fdir); |
| 2635 | /* |
| 2636 | * We have gone through this directory and found no untracked |
| 2637 | * entries. Mark it valid. |
| 2638 | */ |
| 2639 | if (cdir->untracked) { |
| 2640 | cdir->untracked->valid = 1; |
| 2641 | cdir->untracked->recurse = 1; |
| 2642 | } |
| 2643 | } |
| 2644 | |
| 2645 | static void add_path_to_appropriate_result_list(struct dir_struct *dir, |
| 2646 | struct untracked_cache_dir *untracked, |
no test coverage detected