worktree: simplify incompatibility message for --orphan and commit-ish
commit792b86283b13fb2e06b9e62c64fca51b879d0266
authorRené Scharfe <l.s.r@web.de>
Wed, 6 Dec 2023 11:52:01 +0000 (6 12:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Dec 2023 22:41:03 +0000 (9 07:41 +0900)
tree017a2a0b5b6caee7678cb68a7d44b133ecfbb6aa
parent62bc6dd33c9cfc3fe155f46dc91d1c9056464dde
worktree: simplify incompatibility message for --orphan and commit-ish

Use a single translatable string to report that the worktree add option
--orphan is incompatible with a commit-ish instead of having the
commit-ish in a separate translatable string.  This reduces the number
of strings to translate and gives translators the full context.

A similar message is used in builtin/describe.c, but with the plural of
commit-ish, and here we need the singular form.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c