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

[PATCH 0/2] New pretty format color specifiers %C+ and %C-

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Sep 20, 2012, 12:26 UTC
Message-ID
<1348143976-4506-1-git-send-email-pclouds@gmail.com>
In-Reply-To
<CACsJy8BP0vzWG-Po=WBVC_V5Z5_ysoCOTkU-XV3Hy_jVE4H1XQ@mail.gmail.com>
On Thu, Sep 20, 2012 at 5:43 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> I tried --pretty=format:"%h %s %d" but the colors were lost.
> --decorate uses more than one color so %C* does not immitate the
> colorful output we have with --decorate. Maybe I should add %Cd as
> "colored %d" and update my alias to use it.

Here goes. I'm now a happy user with --pretty='format:%C+%h %s %d'. Somebody might want to add coloring to sig placeholder too.

Nguyễn Thái Ngọc Duy (2):
  pretty: share code between format_decoration and show_decorations
  pretty: support placeholders %C+ and %C-
 Documentation/pretty-formats.txt |  2 ++
 log-tree.c                       | 55 ++++++++++++++++++++++++----------------
 log-tree.h                       |  3 +++
 pretty.c                         | 30 +++++++++-------------
 4 files changed, 50 insertions(+), 40 deletions(-)
-- 
1.7.12.1.383.gda6001e.dirty
Previous: Nguyen Thai Ngoc DuyNext: Nguyễn Thái Ngọc Duy
Message 9 of 21 in “log --oneline: put decoration at the end of the line”
  1. log --oneline: put decoration at the end of the lineNguyễn Thái Ngọc Duy, Sep 19, 2012
  2. Jeff KingSep 19, 2012
  3. Junio C HamanoSep 19, 2012
  4. Jeff KingSep 19, 2012
  5. Junio C HamanoSep 19, 2012
  6. Jeff KingSep 19, 2012
  7. Junio C HamanoSep 20, 2012
  8. Nguyen Thai Ngoc DuySep 20, 2012
  9. 0/2 New pretty format color specifiers %C+ and %C-Nguyễn Thái Ngọc Duy, Sep 20, 2012
  10. 1/2 pretty: share code between format_decoration and show_decorationsNguyễn Thái Ngọc Duy, Sep 20, 2012
  11. 2/2 pretty: support placeholders %C+ and %C-Nguyễn Thái Ngọc Duy, Sep 20, 2012
  12. Nguyen Thai Ngoc DuySep 20, 2012
  13. Junio C HamanoSep 20, 2012
  14. Nguyen Thai Ngoc DuySep 21, 2012
  15. Junio C HamanoSep 21, 2012
  16. Junio C HamanoSep 23, 2012
  17. Jeff KingSep 25, 2012
  18. Nguyen Thai Ngoc DuySep 21, 2012
  19. Junio C HamanoSep 20, 2012
  20. Junio C HamanoSep 20, 2012
  21. Nguyen Thai Ngoc DuySep 21, 2012

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.