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

Function is_dot_or_dotdot

dir.h:484–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482int dir_inside_of(const char *subdir, const char *dir);
483
484static inline int is_dot_or_dotdot(const char *name)
485{
486 return (name[0] == '.' &&
487 (name[1] == '\0' ||
488 (name[1] == '.' && name[2] == '\0')));
489}
490
491int is_empty_dir(const char *dir);
492

Callers 5

next_directory_entryFunction · 0.85
valid_remote_nickFunction · 0.85
treat_pathFunction · 0.85
module_migrateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected