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

Function parse_max_memory

builtin/range-diff.c:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20static int parse_max_memory(const struct option *opt, const char *arg, int unset)
21{
22 size_t *max_memory = opt->value;
23 uintmax_t val;
24
25 if (unset)
26 return 0;
27
28 if (!git_parse_unsigned(arg, &val, SIZE_MAX))
29 return error(_("invalid max-memory value: %s"), arg);
30
31 *max_memory = (size_t)val;
32 return 0;
33}
34
35int cmd_range_diff(int argc,
36 const char **argv,

Callers

nothing calls this directly

Calls 2

git_parse_unsignedFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected