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

Function set_git_dir_1

setup.c:1070–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070static void set_git_dir_1(struct repository *repo, const char *path)
1071{
1072 xsetenv(GIT_DIR_ENVIRONMENT, path, 1);
1073 setup_git_env_internal(repo, path);
1074}
1075
1076static void update_relative_gitdir(const char *name UNUSED,
1077 const char *old_cwd,

Callers 2

update_relative_gitdirFunction · 0.85
set_git_dirFunction · 0.85

Calls 2

xsetenvFunction · 0.85
setup_git_env_internalFunction · 0.85

Tested by

no test coverage detected