Skip to content

log: decorate pseudorefs and other refs

Andy Koppe git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v26 patches 0 repliesSuperseded
  3. v17 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7config: restructure color.decorate documentationDocumentation/config/color.txt+19 -40 replies
2/7log: use designated inits for decoration_colorslog-tree.c+7 -70 replies
3/7log: add color.decorate.symbol config variableDocumentation/config/color.txt commit.h log-tree.c +1 more+43 -330 replies
4/7log: add color.decorate.ref config variableDocumentation/config/color.txt commit.h log-tree.c +1 more+16 -30 replies
5/7refs: add pseudorefs array and iteration functionsrefs.c refs.h+47 -03 replies
6/7refs: exempt pseudorefs from pattern prefixingrefs.c+10 -70 replies
7/7log: add color.decorate.pseudoref config variableDocumentation/config/color.txt commit.h log-tree.c +4 more+54 -170 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/7] log: decorate pseudorefs and other refs

This patch series implements decoration with pseudorefs and adds three slots to the color.decorate.<slot> config:
- 'symbol' for coloring the punctuation symbols used around the refs in decorations, which currently use the same color as the commit hash.
- 'ref' for coloring refs other than branches, remote-tracking branches, tags and the stash, which currently are not colored when included in decorations through custom decoration filter options.
- 'pseudoref' for coloring pseudorefs such as ORIG_HEAD or MERGE_HEAD.

CI: https://github.com/ak2/git/actions/runs/6618230811

Andy Koppe (7):
config: restructure color.decorate documentation
log: use designated inits for decoration_colors
log: add color.decorate.symbol config variable
log: add color.decorate.ref config variable
refs: add pseudorefs array and iteration functions
refs: exempt pseudorefs from pattern prefixing
log: add color.decorate.pseudoref config variable

 Documentation/config/color.txt                | 32 +++++++-
 commit.h                                      |  3 +
 log-tree.c                                    | 57 ++++++++++----
 refs.c                                        | 59 +++++++++++++--
 refs.h                                        |  5 ++
 ..._--decorate=full_--clear-decorations_--all |  4 +-
 ...f.log_--decorate_--clear-decorations_--all |  4 +-
 t/t4202-log.sh                                | 21 +++---
 t/t4207-log-decoration-colors.sh              | 74 +++++++++++--------
 9 files changed, 192 insertions(+), 67 deletions(-)
Signature · 1 line
2.42.GIT