From: "René Scharfe" <l.s.r@web.de>
To: Anatoly Borodin <anatoly.borodin@gmail.com>
Cc: Duy Nguyen <pclouds@gmail.com>,
git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: Two bugs in --pretty with %C(auto)
Date: Sun, 18 Sep 2016 15:21:51 +0200 [thread overview]
Message-ID: <bddd85de-76d1-fbd1-06f5-4ced57879f2c@web.de> (raw)
In-Reply-To: <CACNzp2mkD7Se9R=SVwXhyRstkGAs1N9YbNgaZRQYKkpPM1kj8A@mail.gmail.com>
Am 18.09.2016 um 14:30 schrieb Anatoly Borodin:
> On Sat, Sep 17, 2016 at 8:25 PM, René Scharfe <l.s.r@web.de> wrote:
>> I'm not sure how just how automatic %C(auto) is supposed to be, but you
>> expected it do emit the reset for you, right? Sounds reasonable to me.
>
> I don't see a good reason not to do so. Spare some bytes?..
The states for colors and attributes are separate; that's how the bold
attribute bled into your the auto-colored parts of your output. You
could use that property to specify e.g. "give me automatic coloring, but
reverse it".
This only works by accident now, I think. Full resets are emitted after
many placeholders, so attributes don't reach very far in practice. We'd
have to be more careful with these full resets if we'd want attributes
to cover multiple placeholders. An automatic reset at the start of
%C(auto) would go into the opposite direction.
René
next prev parent reply other threads:[~2016-09-18 13:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 12:51 Two bugs in --pretty with %C(auto) Anatoly Borodin
2016-09-17 18:25 ` René Scharfe
2016-09-18 12:30 ` Anatoly Borodin
2016-09-18 13:21 ` René Scharfe [this message]
2016-09-19 12:59 ` Duy Nguyen
2016-09-29 18:13 ` René Scharfe
2016-10-01 21:01 ` Anatoly Borodin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bddd85de-76d1-fbd1-06f5-4ced57879f2c@web.de \
--to=l.s.r@web.de \
--cc=anatoly.borodin@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).