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

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

From
HGHariom Verma via GitGitGadget <gitgitgadget@gmail.com>
Date
Jun 15, 2020, 10:57 UTC
Message-ID
<pull.658.git.1592218662.gitgitgadget@gmail.com>

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
-- 
gitgitgadget
Next: Hariom Verma via GitGitGadget
Message 1 of 6 in “[GSoC][RFC] print commits using ref-filter's logic”
  1. 0/5 [GSoC][RFC] print commits using ref-filter's logicHariom Verma via GitGitGadget, Jun 15, 2020
  2. 2/5 revision: add `use_ref_filter` in struct rev_infoHariom Verma via GitGitGadget, Jun 15, 2020
  3. 3/5 pretty: introduce `get_user_format()`Hariom Verma via GitGitGadget, Jun 15, 2020
  4. 4/5 ref_format: add option to skip `\n` at eolHariom Verma via GitGitGadget, Jun 15, 2020
  5. 1/5 builtin/log: new config log.useRefFilterHariom Verma via GitGitGadget, Jun 15, 2020
  6. 5/5 pretty-lib: print commits using ref-filters logicHariom Verma via GitGitGadget, Jun 15, 2020

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.