Re: [PATCH 5/9] for-each-ref: add %(tracking[:upstream]) for tracking info
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 19, 2013, 11:43 UTC
- Message-ID
- <CACsJy8DSH2Uq9-KhLVS=6Gu5L2q_gbHtrqmaQWE4_DJ6J2zQmQ@mail.gmail.com>
- In-Reply-To
- <CAMP44s1a5JH1T-ckvmFomoKKhFCE61CQ79YFxi4RiQLqeqhgTw@mail.gmail.com>
On Sun, May 19, 2013 at 6:38 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 20 quoted lines
> On Sun, May 19, 2013 at 6:18 AM, Ramkumar Ramachandra
> <artagnon@gmail.com> wrote:
>> Nguyễn Thái Ngọc Duy wrote:
>>> diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c
>>> index 498d703..b10d48a 100644
>>> --- a/builtin/for-each-ref.c
>>> +++ b/builtin/for-each-ref.c
>>> @@ -76,6 +76,8 @@ static struct {
>>> { "symref" },
>>> { "flag" },
>>> { "current" },
>>> + { "tracking" },
>>> + { "tracking:upstream" },
>>> };
>>
>> You just threw the upstream atom (and "upstream:short") out the window :|
>
> Huh? Those don't print the tracking information, do they?
> "tracking:upstream" prints the upstream, but other things as well I
> suppose.Exactly. I already explained why %(upstream) can't be used in 00/09. "tracking" may not be perfect. Somebody might want "tracking:upstream:short". It does not look quite nice. -- Duy