Re: [PATCH v3 07/11] i18n: factorize "no directory given for --foo"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 30, 2021, 22:36 UTC
- Message-ID
- <xmqq4k6ppvnn.fsf@gitster.g>
- In-Reply-To
- <4c17e08b9d3a42375c7082d5d2275ea8cc4fab99.1640804108.git.gitgitgadget@gmail.com>
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 7 quoted lines
> } else if (!strcmp(cmd, "--git-dir")) {
> if (*argc < 2) {
> - fprintf(stderr, _("no directory given for --git-dir\n" ));
> + fprintf(stderr, _("no directory given for %s\n" ), "--git-dir");
> usage(git_usage_string);
> }
> setenv(GIT_DIR_ENVIRONMENT, (*argv)[1], 1);None of the originals of these three uses it, but I wonder if we want a single-quote-pair around %s.