git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2] send-email: Ask if a patch should be sent twice

From
DSDmitry Safonov <dima@arista.com>
Date
Jul 30, 2019, 20:26 UTC
Message-ID
<cd0b46f6-0151-94f2-973f-7ebb2203b8a3@arista.com>
In-Reply-To
<xmqqy30fs4cs.fsf@gitster-ct.c.googlers.com>
On 7/30/19 8:35 PM, Junio C Hamano wrote:
Show 26 quoted lines
> SZEDER Gábor <szeder.dev@gmail.com> writes:
> 
>> On Tue, Jul 30, 2019 at 05:26:24PM +0100, Dmitry Safonov wrote:
>>> +	if (@dupes) {
>>> +		printf(__("Patches specified several times: \n"));
>>
>> Is this message translated?  (I don't know what __("<str>") does in
>> Perl.)  If it is, then ...
> 
> That's not "in Perl" per-se, but what our own Git::I18N gives us.
> 
>>> +test_expect_success $PREREQ 'ask confirmation for double-send' '
>>> +	clean_fake_sendmail &&
>>> +	echo y | \
>>> +		GIT_SEND_EMAIL_NOTTY=1 \
>>> +		git send-email --from=author@example.com \
>>> +			--to=nobody@example.com \
>>> +			--smtp-server="$(pwd)/fake.sendmail" \
>>> +			--validate \
>>> +			$patches $patches $patches \
>>> +			>stdout &&
>>> +	! grep "Patches specified several times: " stdout
>>
>> ... this here should be 'test_i18ngrep' instead of plain old 'grep'.
> 
> Yup.  Thanks for carefully reading the patch(es), as always.
Thanks for spotting, will fix in v3.
-- 
          Dmitry
Previous: Junio C Hamano
Message 4 of 4 in “[PATCHv2] send-email: Ask if a patch should be sent twice”
  1. Dmitry SafonovJul 30, 2019
  2. SZEDER GáborJul 30, 2019
  3. Junio C HamanoJul 30, 2019
  4. Dmitry SafonovJul 30, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.