summaryrefslogtreecommitdiffstats
path: root/builtin/log.c
diff options
context:
space:
mode:
authorJean-Noël Avila <jn.avila@free.fr>2022-01-05 21:02:19 +0100
committerJunio C Hamano <gitster@pobox.com>2022-01-05 22:31:00 +0100
commit6fa00ee843cb6c8e720180b4642590f5bcc9c8cf (patch)
tree2963fe6acddc78f97e96401a127f7d5594330275 /builtin/log.c
parenti18n: tag.c factorize i18n strings (diff)
downloadgit-6fa00ee843cb6c8e720180b4642590f5bcc9c8cf.tar.xz
git-6fa00ee843cb6c8e720180b4642590f5bcc9c8cf.zip
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>
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 74b41db1ce..ded042f3e0 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -2112,7 +2112,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
if (creation_factor < 0)
creation_factor = RANGE_DIFF_CREATION_FACTOR_DEFAULT;
else if (!rdiff_prev)
- die(_("--creation-factor requires --range-diff"));
+ die(_("the option '%s' requires '%s'"), "--creation-factor", "--range-diff");
if (rdiff_prev) {
if (!cover_letter && total != 1)