| 18 | }; |
| 19 | |
| 20 | static 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 | |
| 35 | int cmd_range_diff(int argc, |
| 36 | const char **argv, |
nothing calls this directly
no test coverage detected