git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Two bugs in --pretty with %C(auto)
@ 2016-09-17 12:51 Anatoly Borodin
  2016-09-17 18:25 ` René Scharfe
  0 siblings, 1 reply; 7+ messages in thread
From: Anatoly Borodin @ 2016-09-17 12:51 UTC (permalink / raw)
  To: git

Hi All!

First bug:

	git log -3 --pretty='%C(cyan)%C(auto)%h%C(auto)%d %s'

prints %h with the default color (normal yellow), but

	git log -3 --pretty='%C(bold cyan)%C(auto)%h%C(auto)%d %s'

shows %h with bold yellow, as if only the color was reset, but not
the attributes (blink, ul, reverse also work this way). %d and %s are
printed with the right color both times.

Second bug, maybe related to the first one:

	git log -3 --pretty='%C(bold cyan)%h%C(auto)%d %s %an %h %h %s'

The first line looks as expected. Well, almost: the '(' of %d is bold
yellow.

The second line looks like this:

* %h, %s, %an with bold cyan;
* %h with bold yellow;
* %h with normal yellow and %s with normal white (default colors).

PS git version 2.9.2

-- 
Mit freundlichen Grüßen,
Anatoly Borodin


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-01 21:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-09-19 12:59   ` Duy Nguyen
2016-09-29 18:13   ` René Scharfe
2016-10-01 21:01     ` Anatoly Borodin

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 NNTP newsgroup(s).