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

Re: [PATCH v11 11/13] tag.c: use 'ref-filter' APIs

From
Karthik Nayak <karthik.188@gmail.com>
Date
Aug 17, 2015, 19:14 UTC
Message-ID
<CAOLa=ZRxKRsVv5ieJMzxvLUEZRNj-xX7R8-bgi+GaX3y2X9kPA@mail.gmail.com>
In-Reply-To
<xmqq1tf1eo4w.fsf@gitster.dls.corp.google.com>
On Tue, Aug 18, 2015 at 12:30 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 27 quoted lines
> Karthik Nayak <karthik.188@gmail.com> writes:
>
>> We improve the sorting option provided by 'tag.c' by using the sorting
>> options provided by 'ref-filter'. This causes the test 'invalid sort
>> parameter on command line' in t7004 to fail, as 'ref-filter' throws an
>> error for all sorting fields which are incorrect. The test is changed
>> to reflect the same.
>> ...
>> diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
>> index d31788c..1f066aa 100755
>> --- a/t/t7004-tag.sh
>> +++ b/t/t7004-tag.sh
>> @@ -1462,13 +1462,7 @@ test_expect_success 'invalid sort parameter on command line' '
>>
>>  test_expect_success 'invalid sort parameter in configuratoin' '
>>       git config tag.sort "v:notvalid" &&
>> -     git tag -l "foo*" >actual &&
>> -     cat >expect <<-\EOF &&
>> -     foo1.10
>> -     foo1.3
>> -     foo1.6
>> -     EOF
>> -     test_cmp expect actual
>> +     test_must_fail git tag -l "foo*" >actual
>>  '
>
> You don't have to redirect the output to "actual", then.
Ah okay, will remove that. Thanks
-- 
Regards,
Karthik Nayak
Previous: Junio C Hamano
Message 3 of 3 in “tag.c: use 'ref-filter' APIs”
  1. 11/13 tag.c: use 'ref-filter' APIsKarthik Nayak, Aug 15, 2015
  2. Junio C HamanoAug 17, 2015
  3. Karthik NayakAug 17, 2015

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.