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

Re: [PATCH] completion: add format-patch options to send-email

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 15, 2012, 23:28 UTC
Message-ID
<7vhapvuxgo.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20121015224857.GA2156@goldbirke>
SZEDER Gábor <szeder@ira.uka.de> writes:
Show 5 quoted lines
>> +	cd test
>
> This 'cd' makes all subsequent tests to be executed in a different
> repository than previously, which breaks 'checkout completes ref
> names'.
Yeah, thanks for spotting and yelling at it ;-).

We really need to be careful about tests that cd around. Even the ones that only go down and expect the rest of the test to run in that subdirectory may later have to be modified by somebody to run back at the original level, and writing "cd ..", which leads to all sorts of problems, becomes too tempting.

Show 18 quoted lines
>> +'
>> +
>>  test_expect_success 'basic' '
>>  	run_completion "git \"\"" &&
>>  	# built-in
>> @@ -228,4 +244,9 @@ test_expect_success 'general options plus command' '
>>  	test_completion "git --no-replace-objects check" "checkout "
>>  '
>>  
>> +test_expect_success 'send-email' '
>> +	test_completion "git send-email --cov" "--cover-letter " &&
>> +	test_completion "git send-email ma" "master "
>> +'
>> +
>>  test_done
>> -- 
>> 1.7.12.1
>> 
Previous: SZEDER GáborNext: Felipe Contreras
Message 3 of 6 in “completion: add format-patch options to send-email”
  1. completion: add format-patch options to send-emailFelipe Contreras, Oct 14, 2012
  2. SZEDER GáborOct 15, 2012
  3. Junio C HamanoOct 15, 2012
  4. Felipe ContrerasOct 15, 2012
  5. SZEDER GáborOct 15, 2012
  6. Felipe ContrerasOct 15, 2012

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.