,
Thomas Gummerer ,
=?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason ,
Ramsay Jones ,
Stefan Beller ,
Jacob Keller ,
Eric Sunshine
Subject: Re: [PATCH v2 13/18] color: provide inverted colors, too
Message-ID: <20180505182922.GD17700@sigill.intra.peff.net>
References:
<1ebbe359547689d32aa27564929d733a26bb8054.1525448066.git.johannes.schindelin@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <1ebbe359547689d32aa27564929d733a26bb8054.1525448066.git.johannes.schindelin@gmx.de>
Sender: git-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: git@vger.kernel.org
Archived-At:
List-Archive:
List-Post:
On Fri, May 04, 2018 at 05:34:58PM +0200, Johannes Schindelin wrote:
> For every regular color, there exists the inverted equivalent where
> background and foreground colors are exchanged.
>
> We will use this in the next commit to allow inverting *just* the +/-
> signs in a diff.
There's a "reverse" attribute (which we already parse and support) that
can do this without having to repeat the colors. AFAIK it's well
supported everywhere, but I could be wrong.
I wonder if that would make configuring this slightly more pleasant,
since it saves the user having to define "oldinv" whenever they change
"old".
-Peff