Skip to content

nd/pretty-formats

Nguyễn Thái Ngọc Duy git 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest13 patches 0 repliesNew
  2. v313 patches 10 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13pretty: save commit encoding from logmsg_reencode if the caller needs itbuiltin/blame.c builtin/commit.c commit.h +2 more+16 -70 replies
2/13pretty: get the correct encoding for --pretty:format=%epretty.c+7 -60 replies
3/13pretty-formats.txt: wrap long linesDocumentation/pretty-formats.txt+12 -60 replies
4/13pretty: share code between format_decoration and show_decorationslog-tree.c log-tree.h pretty.c +1 more+39 -380 replies
5/13utf8.c: move display_mode_esc_sequence_len() for use by other functionsutf8.c+14 -140 replies
6/13utf8.c: add utf8_strnwidth() with the ability to skip ansi sequencesutf8.c utf8.h+15 -60 replies
7/13utf8.c: add reencode_string_len() that can handle NULs in stringcompat/precompose_utf8.c utf8.c utf8.h+24 -70 replies
8/13pretty: two phase conversion for non utf-8 commitspretty.c t/t6006-rev-list-format.sh+28 -80 replies
9/13pretty: split color parsing into a separate functionpretty.c+39 -320 replies
10/13pretty: add %C(auto) for auto-coloringDocumentation/pretty-formats.txt pretty.c+25 -40 replies
11/13pretty: support padding placeholders, %< %> and %><Documentation/pretty-formats.txt pretty.c t/t4205-log-pretty-formats.sh+246 -10 replies
12/13pretty: support truncating in %>, %< and %><Documentation/pretty-formats.txt pretty.c t/t4205-log-pretty-formats.sh +2 more+140 -50 replies
13/13pretty: support %>> that steal trailing spacesDocumentation/pretty-formats.txt pretty.c t/t4205-log-pretty-formats.sh +2 more+54 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 00/13] nd/pretty-formats

v4 fixes comments from v3, mainly in the auto-coloring patch, and uses qz_to_tab_space for changes in t4205. It also fixes a coding style issue in 06/13, spotted in v2 but I missed it in v3.

Nguyễn Thái Ngọc Duy (13):
pretty: save commit encoding from logmsg_reencode if the caller needs it
pretty: get the correct encoding for --pretty:format=%e pretty-formats.txt: wrap long lines
pretty: share code between format_decoration and show_decorations utf8.c: move display_mode_esc_sequence_len() for use by other functions utf8.c: add utf8_strnwidth() with the ability to skip ansi sequences utf8.c: add reencode_string_len() that can handle NULs in string
pretty: two phase conversion for non utf-8 commits
pretty: split color parsing into a separate function
pretty: add %C(auto) for auto-coloring
pretty: support padding placeholders, %< %> and %><
pretty: support truncating in %>, %< and %><
pretty: support %>> that steal trailing spaces

 Documentation/pretty-formats.txt |  35 +++-
 builtin/blame.c                  |   2 +-
 builtin/commit.c                 |   2 +-
 commit.h                         |   1 +
 compat/precompose_utf8.c         |   2 +-
 log-tree.c                       |  48 ++++--
 log-tree.h                       |   1 +
 pretty.c                         | 358 ++++++++++++++++++++++++++++++++-------
 revision.c                       |   2 +-
 t/t4205-log-pretty-formats.sh    | 175 +++++++++++++++++++
 t/t4207-log-decoration-colors.sh |   8 +-
 t/t6006-rev-list-format.sh       |  12 +-
 utf8.c                           | 104 +++++++++---
 utf8.h                           |  23 ++-
 14 files changed, 648 insertions(+), 125 deletions(-)
Signature · 1 line
1.8.2.82.gc24b958