diff options
author | Jean-Noël Avila <jn.avila@free.fr> | 2022-01-05 20:02:15 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-05 21:29:23 (GMT) |
commit | c488182903d97da70b7a486e514ab871345067cc (patch) | |
tree | e5abfa80d7cd54e306792ee9f361276dcb3dfff8 /builtin/worktree.c | |
parent | 43ea635c35371b22a7a2010398d47040c5b95adc (diff) | |
download | git-c488182903d97da70b7a486e514ab871345067cc.zip git-c488182903d97da70b7a486e514ab871345067cc.tar.gz git-c488182903d97da70b7a486e514ab871345067cc.tar.bz2 |
i18n: refactor "%s, %s and %s are mutually exclusive"
Use placeholders for constant tokens. The strings are turned into
"cannot be used together"
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/worktree.c')
-rw-r--r-- | builtin/worktree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c index 9a52048..ec1c59b 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -503,7 +503,7 @@ static int add(int ac, const char **av, const char *prefix) opts.checkout = 1; ac = parse_options(ac, av, prefix, options, worktree_usage, 0); if (!!opts.detach + !!new_branch + !!new_branch_force > 1) - die(_("-b, -B, and --detach are mutually exclusive")); + die(_("options '%s', '%s', and '%s' cannot be used together"), "-b", "-B", "--detach"); if (lock_reason && !keep_locked) die(_("--reason requires --lock")); if (lock_reason) |