MCPcopy Index your code
hub / github.com/git/git / read_dir_paths

Function read_dir_paths

tmp-objdir.c:213–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static 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
230static int migrate_paths(struct tmp_objdir *t,
231 struct strbuf *src, struct strbuf *dst,

Callers 1

migrate_pathsFunction · 0.85

Calls 4

opendirFunction · 0.85
readdirFunction · 0.85
closedirFunction · 0.85
string_list_appendFunction · 0.70

Tested by

no test coverage detected