git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: BUG: %+ format placeholder and colors

From
RRaphael <raphael@pdev.de>
Date
Mar 23, 2022, 18:12 UTC
Message-ID
<e8417ad5-f9f2-c1de-75f6-45be49f0011b@pdev.de>
In-Reply-To
<220323.86wnglnzrq.gmgdl@evledraar.gmail.com>
 > At least for me a screenshot & a link to a repo you expect to run this
 > on would really help, since the output is very different depending on
 > branch topology, ref names etc.

I believe the branch topology is not relevant to reproduce this bug, it happens in my small demo repo with two commits as well as big repos.

I uploaded a screenshot at https://qu.ax/Mzuv.png The key is that lines starting with the pipe symbol should have their text printed in red, which does not happen.

The general idea is to highlight when a commit has refnames, which I want to print in an optional second line and colorized. The latter seems not possible currently.

The exact command used was: git log --pretty=format:'%h %s%Cred%+d test' --graph

Previous: Ævar Arnfjörð BjarmasonNext: Raphael Bauer
Message 6 of 11 in “Pretty format color bug”
  1. Raphael BauerFeb 21, 2022
  2. Ævar Arnfjörð BjarmasonFeb 21, 2022
  3. Raphael BauerFeb 22, 2022
  4. BUG: %+ format placeholder and colorsRaphael Bauer, Mar 22, 2022
  5. Ævar Arnfjörð BjarmasonMar 23, 2022
  6. RaphaelMar 23, 2022
  7. pretty format: fix colors on %+ placeholder newlineRaphael Bauer, Apr 5, 2022
  8. Junio C HamanoApr 6, 2022
  9. RaphaelApr 8, 2022
  10. Ævar Arnfjörð BjarmasonApr 8, 2022
  11. Junio C HamanoApr 8, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.