Re: [PATCH v4 04/19] for-each-ref: add '--points-at' option

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

 



On Tue, Jun 23, 2015 at 4:08 AM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote:
> On Sun, Jun 21, 2015 at 4:48 PM, Karthik Nayak <karthik.188@xxxxxxxxx> wrote:
>> Add the '--points-at' option provided by 'ref-filter'. The
>> option lets the user to pick only refs which point to a particular
>> commit.
>>
>> Add documentation and tests for the same.
>>
>> Based-on-patch-by: Jeff King <peff@xxxxxxxx>
>> Mentored-by: Christian Couder <christian.couder@xxxxxxxxx>
>> Mentored-by: Matthieu Moy <matthieu.moy@xxxxxxxxxxxxxxx>
>> Signed-off-by: Karthik Nayak <karthik.188@xxxxxxxxx>
>> ---
>> diff --git a/t/t6301-for-each-ref-filter.sh b/t/t6301-for-each-ref-filter.sh
>> index b1fa8d4..67de3a7 100755
>> --- a/t/t6301-for-each-ref-filter.sh
>> +++ b/t/t6301-for-each-ref-filter.sh
>> @@ -16,4 +16,24 @@ test_expect_success 'setup some history and refs' '
>>         git update-ref refs/odd/spot master
>>  '
>>
>> +test_expect_success 'filtering with --points-at' '
>> +       cat >expect <<-\EOF &&
>> +       refs/heads/master
>> +       refs/odd/spot
>> +       refs/tags/three
>> +       EOF
>> +       git for-each-ref --format="%(refname)" --points-at=master >actual &&
>> +       test_cmp expect actual
>> +'
>> +
>> +test_expect_success 'check signed tags with --points-at' '
>> +       cat >expect <<-\EOF &&
>> +       refs/heads/side
>> +       refs/tags/four
>> +       refs/tags/signed-tag four
>> +       EOF
>> +       git for-each-ref  --format="%(refname) %(*subject)" --points-at=side >actual &&
>
> s/for-each-ref\s+/for-each-ref /
>

Will change! thanks :)


-- 
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]