Re: [PATCH v2 04/10] checkout-index: delay automatic setting of to_tempfile
- From
René Scharfe <l.s.r@web.de>
- Date
- Sep 2, 2023, 06:20 UTC
- Message-ID
- <c7855b08-46ee-5df0-4b0f-67ea57d84b18@web.de>
- In-Reply-To
- <20230831212051.GD949469@coredump.intra.peff.net>
Am 31.08.23 um 23:20 schrieb Jeff King:
Show 8 quoted lines
> @@ -269,6 +268,11 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
> state.base_dir = "";
> state.base_dir_len = strlen(state.base_dir);
>
> + if (to_tempfile < 0)
> + to_tempfile = (checkout_stage == CHECKOUT_ALL);
> + if (!to_tempfile && checkout_stage == CHECKOUT_ALL)
> + die("--stage=all and --no-temp are incompatible");How about making this message translatable from the start and following the convention from 12909b6b8a (i18n: turn "options are incompatible" into "cannot be used together", 2022-01-05) to reuse the existing translations?
René