| 211 | } |
| 212 | |
| 213 | static int read_dir_paths(struct string_list *out, const char *path) |
| 214 | { |
| 215 | DIR *dh; |
| 216 | struct dirent *de; |
| 217 | |
| 218 | dh = opendir(path); |
| 219 | if (!dh) |
| 220 | return -1; |
| 221 | |
| 222 | while ((de = readdir(dh))) |
| 223 | if (de->d_name[0] != '.') |
| 224 | string_list_append(out, de->d_name); |
| 225 | |
| 226 | closedir(dh); |
| 227 | return 0; |
| 228 | } |
| 229 | |
| 230 | static int migrate_paths(struct tmp_objdir *t, |
| 231 | struct strbuf *src, struct strbuf *dst, |
no test coverage detected