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

Function getenv_safe

environment.c:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118};
119
120const char *getenv_safe(struct strvec *argv, const char *name)
121{
122 const char *value = getenv(name);
123
124 if (!value)
125 return NULL;
126
127 strvec_push(argv, value);
128 return argv->v[argv->nr - 1];
129}
130
131int is_bare_repository(void)
132{

Callers 2

setup_git_env_internalFunction · 0.85

Calls 1

strvec_pushFunction · 0.85

Tested by

no test coverage detected