Skip to content

RFC print commits using ref-filter's logic

Hariom Verma via GitGitGadget git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5builtin/log: new config log.useRefFilterDocumentation/config/log.txt builtin/log.c+11 -00 replies
2/5revision: add `use_ref_filter` in struct rev_infobuiltin/log.c revision.h+3 -10 replies
3/5pretty: introduce `get_user_format()`pretty.c pretty.h+8 -00 replies
4/5ref_format: add option to skip `\n` at eolref-filter.c ref-filter.h+5 -20 replies
5/5pretty-lib: print commits using ref-filters logicMakefile log-tree.c pretty-lib.c +1 more+112 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchChristian CouderHeba Waly
1/5Mentored-by Mentored-by
2/5Mentored-by Mentored-by
3/5Mentored-by Mentored-by
4/5Mentored-by Mentored-by
5/5Mentored-by Mentored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] [GSoC][RFC] print commits using ref-filter's logic

This is a step toward reusing ref-filter formatting logic in pretty to have one unified interface to extract all needed data from the object and to print it properly.

In the process, I made few modifications. Although it doesn't impact the current flow of git log unless log.usereffilter is set true.

Thanks, Hariom

Hariom Verma (5):
builtin/log: new config log.useRefFilter
revision: add use_ref_filter in struct rev_info
pretty: introduce get_user_format()
ref_format: add option to skip \n at eol
pretty-lib: print commits using ref-filters logic

 Documentation/config/log.txt |  4 ++
 Makefile                     |  1 +
 builtin/log.c                |  8 ++++
 log-tree.c                   |  7 ++-
 pretty-lib.c                 | 84 ++++++++++++++++++++++++++++++++++++
 pretty-lib.h                 | 21 +++++++++
 pretty.c                     |  5 +++
 pretty.h                     |  3 ++
 ref-filter.c                 |  3 +-
 ref-filter.h                 |  4 +-
 revision.h                   |  3 +-
 11 files changed, 139 insertions(+), 4 deletions(-)
 create mode 100644 pretty-lib.c
 create mode 100644 pretty-lib.h

base-commit: eebb51ba8cab97c0b3f3f18eaab7796803b8494b
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-658%2Fharry-hov%2Flog-ref-filter-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-658/harry-hov/log-ref-filter-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/658

Signature · 1 line
gitgitgadget