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

Function expire_unreachable_callback

builtin/reflog.c:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static 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
127static int expire_total_callback(const struct option *opt,
128 const char *arg,

Callers

nothing calls this directly

Calls 2

parse_expiry_dateFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected