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

Function git_env_ulong

parse.c:214–220  ·  view source on GitHub ↗

* Parse environment variable 'k' as ulong with possibly a unit * suffix; if missing, use the default value 'val'. */

Source from the content-addressed store, hash-verified

212 * suffix; if missing, use the default value 'val'.
213 */
214unsigned long git_env_ulong(const char *k, unsigned long val)
215{
216 const char *v = getenv(k);
217 if (v && !git_parse_ulong(v, &val))
218 die(_("failed to parse %s"), k);
219 return val;
220}

Callers 9

memory_limit_checkFunction · 0.85
mmap_limit_checkFunction · 0.85
write_commit_graphFunction · 0.85
cmd_mainFunction · 0.85
prepare_packing_dataFunction · 0.85
get_default_delayFunction · 0.85
cmd__env_helperFunction · 0.85
cmd_pack_objectsFunction · 0.85

Calls 2

git_parse_ulongFunction · 0.85
dieFunction · 0.70

Tested by 1

cmd__env_helperFunction · 0.68