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

Re: [PATCH] completion(switch/checkout): treat --track and -t the same

From
Todd Zullinger <tmz@pobox.com>
Date
Sep 8, 2023, 16:14 UTC
Message-ID
<ZPtISYVufU0MazO_@pobox.com>
In-Reply-To
<xmqq1qf8vf1e.fsf@gitster.g>
Junio C Hamano wrote:
Show 12 quoted lines
> "Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
> writes:
>> diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
>> index 8835e16e811..df8bc44c285 100755
>> --- a/t/t9902-completion.sh
>> +++ b/t/t9902-completion.sh
>> @@ -1622,14 +1622,22 @@ test_expect_success 'git checkout - with -d, complete only references' '
>>  '
>>  
>>  test_expect_success 'git switch - with --track, complete only remote branches' '
>> -	test_completion "git switch --track " <<-\EOF
>> +:	test_completion "git switch --track " <<-\EOF &&

Is this new leading ":" intended? It looks out of place (though perhaps I just don't unerstand the context well enough).

Show 10 quoted lines
>> +	other/branch-in-other Z
>> +	other/main-in-other Z
>> +	EOF
>> +	test_completion "git switch -t " <<-\EOF
>>  	other/branch-in-other Z
>>  	other/main-in-other Z
>>  	EOF
>>  '
> 
> So, this demonstrates that '-t' behaves the same way as '--track'.
-- 
Todd
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “completion(switch/checkout): treat --track and -t the same”
  1. completion(switch/checkout): treat --track and -t the sameJohannes Schindelin via GitGitGadget, Sep 8, 2023
  2. Junio C HamanoSep 8, 2023
  3. Todd ZullingerSep 8, 2023
  4. Junio C HamanoSep 8, 2023
  5. Johannes SchindelinSep 10, 2023
  6. Junio C HamanoSep 11, 2023

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.