Re: [PATCH v7 0/11] port tag.c to use ref-filter APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 2, 2015 at 11:02 PM, Matthieu Moy
<Matthieu.Moy@xxxxxxxxxxxxxxx> wrote:
> Karthik Nayak <karthik.188@xxxxxxxxx> writes:
>
>> +test_expect_success 'no padding when `padright` length is smaller than atom length' '
>> +    cat >expect <<-\EOF &&
>> +    refs/heads/master|
>> +    refs/heads/side|
>> +    refs/odd/spot|
>> +    refs/tags/double-tag|
>> +    refs/tags/four|
>> +    refs/tags/one|
>> +    refs/tags/signed-tag|
>> +    refs/tags/three|
>> +    refs/tags/two|
>> +    EOF
>> +    git for-each-ref --format="%(padright:5)%(refname)|" >actual &&
>>      test_cmp expect actual
>>  '
>
> Nit: I think the test would be better with padright:15 for example, to
> show that some lines are aligned and some go beyond the 15 columns.
>

I've added something like this :)


-- 
Regards,
Karthik Nayak
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]