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

Function parse_opt_expiry_date_cb

parse-options-cb.c:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40int parse_opt_expiry_date_cb(const struct option *opt, const char *arg,
41 int unset)
42{
43 if (unset)
44 arg = "never";
45 if (parse_expiry_date(arg, (timestamp_t *)opt->value))
46 die(_("malformed expiration date '%s'"), arg);
47 return 0;
48}
49
50int parse_opt_color_flag_cb(const struct option *opt, const char *arg,
51 int unset)

Callers

nothing calls this directly

Calls 2

parse_expiry_dateFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected