Re: [RFC/PATCH 02/11] ref-filter: add 'colornext' atom
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 29, 2015, 20:10 UTC
- Message-ID
- <CAPig+cTb3U2AHjr4wmQGezqHOED3zyYHPG54BjdCZObt=7Mu3w@mail.gmail.com>
- In-Reply-To
- <1438066594-5620-2-git-send-email-Karthik.188@gmail.com>
On Tuesday, July 28, 2015, Karthik Nayak <karthik.188@gmail.com> wrote:
> The 'colornext' atom allows us to color only the succeeding atom with > a particular color. This resets any previous color preferences set. It > is not compatible with `padright`. This is required for printing > formats like `git branch -vv` where the upstream is colored in blue.
Can you explain here and in the commit message why %(colornext) is not compatible with %(padright:)? Is it an implementation limitation, or a syntax or semantic limitation, or what? Can the implementation be fixed to make it compatible or does it require a redesign?
Also, please explain here and in the commit message why this highly specialized colorizer ('colornext'), is needed even though a more general purpose one ('color') is already available.