worktree: standardize incompatibility messages
commit62bc6dd33c9cfc3fe155f46dc91d1c9056464dde
authorRené Scharfe <l.s.r@web.de>
Wed, 6 Dec 2023 11:52:00 +0000 (6 12:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Dec 2023 22:41:03 +0000 (9 07:41 +0900)
tree5854859f3946cff2b3e355415caa353a3127d31f
parentf5f9e972bd437f24365a26ebfbfebba4bc260984
worktree: standardize incompatibility messages

Use the standard parameterized message for reporting incompatible
options for worktree add.  This reduces the number of strings to
translate and makes the UI slightly more consistent.

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