mirror of
https://github.com/git/git.git
synced 2026-04-07 15:30:09 +02:00
Merge branch 'jk/unused-fixes'
Code clean-up to remove unused function parameters. * jk/unused-fixes: xdiff: drop unused mmfile parameters from xdl_do_patience_diff() reflog: assert PARSE_OPT_NONEG in parse-options callbacks reftable: drop unused parameter from reader_seek_linear() verify_one_sparse(): drop unused parameters match_pathname(): drop unused "flags" parameter log-tree: drop unused commit param in remerge_diff() xdiff: drop unused mmfile parameters from xdl_do_histogram_diff()
This commit is contained in:
@@ -193,6 +193,8 @@ static int expire_unreachable_callback(const struct option *opt,
|
||||
{
|
||||
struct cmd_reflog_expire_cb *cmd = opt->value;
|
||||
|
||||
BUG_ON_OPT_NEG(unset);
|
||||
|
||||
if (parse_expiry_date(arg, &cmd->expire_unreachable))
|
||||
die(_("invalid timestamp '%s' given to '--%s'"),
|
||||
arg, opt->long_name);
|
||||
@@ -207,6 +209,8 @@ static int expire_total_callback(const struct option *opt,
|
||||
{
|
||||
struct cmd_reflog_expire_cb *cmd = opt->value;
|
||||
|
||||
BUG_ON_OPT_NEG(unset);
|
||||
|
||||
if (parse_expiry_date(arg, &cmd->expire_total))
|
||||
die(_("invalid timestamp '%s' given to '--%s'"),
|
||||
arg, opt->long_name);
|
||||
|
||||
Reference in New Issue
Block a user