Re: [RFC/PATCH v11 12/13] bisect--helper: `get_terms` & `bisect_terms` shell function in C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 2, 2016, 19:22 UTC
- Message-ID
- <xmqq1t27dlhr.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <0102015640423d09-87c8e96f-f10f-47dc-b24e-e30ba1de4408-000000@eu-west-1.amazonses.com>
Pranit Bauva <pranit.bauva@gmail.com> writes:
Show 12 quoted lines
> +static int bisect_terms(struct bisect_terms *terms, int term_defined)
> +{
> + if (get_terms(terms)) {
> + fprintf(stderr, "no terms defined\n");
> + return -1;
> + }
> + if (!term_defined) {
> + printf("Your current terms are %s for the old state\nand "
> + "%s for the new state.\n", terms->term_good.buf,
> + terms->term_bad.buf);
> + return 0;
> + }In the original, all of the above messages go through gettext; this rewrite should do the same.