Skip to content

Layout control placeholders for pretty format

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 13 repliesIn review
  2. v112 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12pretty-formats.txt: wrap long linesDocumentation/pretty-formats.txt+12 -60 replies
2/12pretty: share code between format_decoration and show_decorationslog-tree.c log-tree.h pretty.c +1 more+45 -454 replies
3/12utf8.c: move display_mode_esc_sequence_len() for use by other functionsutf8.c+14 -140 replies
4/12utf8.c: add utf8_strnwidth() with the ability to skip ansi sequencesutf8.c utf8.h+15 -61 reply
5/12pretty: save commit encoding from logmsg_reencode if the caller needs itbuiltin/blame.c builtin/commit.c commit.h +2 more+16 -71 reply
6/12pretty: get the correct encoding for --pretty:format=%epretty.c+7 -60 replies
7/12utf8: keep NULs in reencode_string()builtin/fast-export.c builtin/mailinfo.c compat/precompose_utf8.c +5 more+27 -132 replies
8/12pretty: two phase conversion for non utf-8 commitspretty.c t/t6006-rev-list-format.sh+28 -80 replies
9/12pretty: add %C(auto) for auto-coloring on the next placeholderDocumentation/pretty-formats.txt pretty.c+15 -34 replies
10/12pretty: support padding placeholders, %< %> and %><Documentation/pretty-formats.txt pretty.c+124 -10 replies
11/12pretty: support truncating in %>, %< and %><Documentation/pretty-formats.txt pretty.c utf8.c +1 more+100 -50 replies
12/12pretty: support %>> that steal trailing spacesDocumentation/pretty-formats.txt pretty.c utf8.c +1 more+40 -21 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/12] Layout control placeholders for pretty format

The only difference in v2 is typo fixes (mostly in commit messages, but some in pretty-formats.txt). Also resend as a reminder to Junio if he forgot to pick it up.

Nguyễn Thái Ngọc Duy (12):
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
pretty: save commit encoding from logmsg_reencode if the caller needs
it
pretty: get the correct encoding for --pretty:format=%e
utf8: keep NULs in reencode_string()
pretty: two phase conversion for non utf-8 commits
pretty: add %C(auto) for auto-coloring on the next placeholder
pretty: support padding placeholders, %< %> and %><
pretty: support truncating in %>, %< and %><
pretty: support %>> that steal trailing spaces

 Documentation/pretty-formats.txt |  34 ++++-
 builtin/blame.c                  |   2 +-
 builtin/commit.c                 |   2 +-
 builtin/fast-export.c            |   3 +-
 builtin/mailinfo.c               |   3 +-
 commit.h                         |   1 +
 compat/precompose_utf8.c         |   2 +-
 log-tree.c                       |  60 +++++----
 log-tree.h                       |   3 +
 notes.c                          |   4 +-
 pretty.c                         | 282 ++++++++++++++++++++++++++++++++++-----
 revision.c                       |   2 +-
 sequencer.c                      |   5 +-
 t/t4207-log-decoration-colors.sh |   8 +-
 t/t6006-rev-list-format.sh       |  12 +-
 utf8.c                           | 104 +++++++++++----
 utf8.h                           |  14 +-
 17 files changed, 434 insertions(+), 107 deletions(-)
Signature · 1 line
1.8.2.83.gc99314b