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

Function is_submodule_populated_gently

submodule.c:295–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295int is_submodule_populated_gently(const char *path, int *return_error_code)
296{
297 int ret = 0;
298 char *gitdir = xstrfmt("%s/.git", path);
299
300 if (resolve_gitdir_gently(gitdir, return_error_code))
301 ret = 1;
302
303 free(gitdir);
304 return ret;
305}
306
307/*
308 * Dies if the provided 'prefix' corresponds to an unpopulated submodule

Callers 6

checkout_entry_caFunction · 0.85
default_name_or_pathFunction · 0.85
submodule_move_headFunction · 0.85
validate_no_submodulesFunction · 0.85
sync_submoduleFunction · 0.85

Calls 2

xstrfmtFunction · 0.85
resolve_gitdir_gentlyFunction · 0.85

Tested by

no test coverage detected