i18n: factorize "--foo requires --bar" and the like
They are all replaced by "the option '%s' requires '%s'", which is a new string but replaces 17 previous unique strings. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Reviewed-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
408c5c5c79
commit
6fa00ee843
@ -2884,7 +2884,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
|
||||
if (revs->no_walk && revs->graph)
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--no-walk", "--graph");
|
||||
if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
|
||||
die("cannot use --grep-reflog without --walk-reflogs");
|
||||
die(_("the option '%s' requires '%s'"), "--grep-reflog", "--walk-reflogs");
|
||||
|
||||
if (revs->line_level_traverse &&
|
||||
(revs->diffopt.output_format & ~(DIFF_FORMAT_PATCH | DIFF_FORMAT_NO_OUTPUT)))
|
||||
|
Reference in New Issue
Block a user