Re: [RFC/PATCH 07/11] branch: move 'current' check down to the presentation layer
- From
Jacob Keller <jacob.keller@gmail.com>
- Date
- Jul 29, 2015, 00:46 UTC
- Message-ID
- <CA+P7+xrGjeXPg3Fbp3A3gJbFeK2E-CP0uXQHWBb3NbNVUHUe2g@mail.gmail.com>
- In-Reply-To
- <CAOLa=ZTy+KX4K_inpDoMy+thzFdF2RF93yMEHJUExzT4OvjPww@mail.gmail.com>
On Tue, Jul 28, 2015 at 1:12 PM, Karthik Nayak <karthik.188@gmail.com> wrote:
Show 18 quoted lines
> On Tue, Jul 28, 2015 at 6:39 PM, Matthieu Moy > <Matthieu.Moy@grenoble-inp.fr> wrote: >> Karthik Nayak <karthik.188@gmail.com> writes: >> >>> We check if given ref is the current branch in print_ref_list(). Move >>> this check to print_ref_item() where it is checked right before >>> printing. >> >> This means that the '*' and the different color are coded in C, hence >> it's not possible to mimick this using "git for-each-ref --format ...". >> >> I do not consider this as blocking, but I think the ultimate goal should >> be to allow this, so that all the goodies of "git branch" can be made >> available to other ref-listing commands. >> > > Not sure what you mean here. >
He means to make sure that any feature that was in tag, branch, for-each-ref, etc should be available as part of ref-filter and in all of them
Maybe he misunderstood code or maybe you misunderstood the comment here?
Regards, Jake