| 109 | } |
| 110 | |
| 111 | static int expire_unreachable_callback(const struct option *opt, |
| 112 | const char *arg, |
| 113 | int unset) |
| 114 | { |
| 115 | struct reflog_expire_options *opts = opt->value; |
| 116 | |
| 117 | BUG_ON_OPT_NEG(unset); |
| 118 | |
| 119 | if (parse_expiry_date(arg, &opts->expire_unreachable)) |
| 120 | die(_("invalid timestamp '%s' given to '--%s'"), |
| 121 | arg, opt->long_name); |
| 122 | |
| 123 | opts->explicit_expiry |= REFLOG_EXPIRE_UNREACH; |
| 124 | return 0; |
| 125 | } |
| 126 | |
| 127 | static int expire_total_callback(const struct option *opt, |
| 128 | const char *arg, |
nothing calls this directly
no test coverage detected