MCPcopy Create free account
hub / github.com/git/git / readdir_skip_dot_and_dotdot

Function readdir_skip_dot_and_dotdot

dir.c:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78static int resolve_dtype(int dtype, struct index_state *istate,
79 const char *path, int len);
80struct dirent *readdir_skip_dot_and_dotdot(DIR *dirp)
81{
82 struct dirent *e;
83
84 while ((e = readdir(dirp)) != NULL) {
85 if (!is_dot_or_dotdot(e->d_name))
86 break;
87 }
88 return e;
89}
90
91int for_each_file_in_dir(struct strbuf *path, file_iterator fn, const void *data)
92{

Callers 15

remove_subtreeFunction · 0.85
get_worktrees_internalFunction · 0.85
submodule_uses_worktreesFunction · 0.85
for_each_file_in_dirFunction · 0.85
read_cached_dirFunction · 0.85
is_empty_dirFunction · 0.85
remove_dir_recurseFunction · 0.85
read_directory_contentsFunction · 0.85
rerere_gcFunction · 0.85
notes_merge_commitFunction · 0.85

Calls 2

readdirFunction · 0.85
is_dot_or_dotdotFunction · 0.85

Tested by

no test coverage detected