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

Function is_inside_dir

dir.c:3241–3253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3239}
3240
3241int is_inside_dir(const char *dir)
3242{
3243 char *cwd;
3244 int rc;
3245
3246 if (!dir)
3247 return 0;
3248
3249 cwd = xgetcwd();
3250 rc = (dir_inside_of(cwd, dir) >= 0);
3251 free(cwd);
3252 return rc;
3253}
3254
3255int is_empty_dir(const char *path)
3256{

Callers 2

is_inside_git_dirFunction · 0.85
is_inside_work_treeFunction · 0.85

Calls 2

xgetcwdFunction · 0.85
dir_inside_ofFunction · 0.85

Tested by

no test coverage detected