Skip to content

move encoding configs to repo_config_values()

Tian Yuchen git 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3commit: plumb 'struct repository' into commit creation APIsbuiltin/am.c builtin/commit-tree.c builtin/commit.c +10 more+22 -230 replies
2/3pretty: plumb 'struct repository' into pretty-print APIsbuiltin/checkout.c builtin/log.c builtin/merge.c +11 more+20 -200 replies
3/3environment: migrate encoding configs to repo_config_values()builtin/am.c builtin/blame.c builtin/commit.c +16 more+71 -590 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 0/3] move encoding configs to repo_config_values()

This is v4 of the series aimed at reducing the global state associated with git_commit_encoding and git_log_output_encoding.

This v4 series is built on top of Olamide Caleb Bello's recent patch:
"[Outreachy PATCH v7 1/3] environment: stop storing core.attributesFile globally" (Message-ID: <48821a3848bef25c13038be8377ad73e7c17a924.1771258573.git.belkid98@gmail.com>)

It adopts the 'struct repo_config_values' introduced in that patch to safely encapsulate repository-specific parsed configurations.

I would like to express my gratitude to Phillip Wood for help and guidance.

Tian Yuchen (3):
commit: plumb 'struct repository' into commit creation APIs
pretty: plumb 'struct repository' into pretty-print APIs
environment: migrate encoding configs to repo_config_values()

 builtin/am.c          |  6 +++---
 builtin/blame.c       |  2 +-
 builtin/checkout.c    |  4 ++--
 builtin/commit-tree.c |  2 +-
 builtin/commit.c      |  8 ++++----
 builtin/history.c     |  2 +-
 builtin/log.c         |  4 ++--
 builtin/mailinfo.c    |  6 +++---
 builtin/merge.c       |  6 +++---
 builtin/rebase.c      |  2 +-
 builtin/reset.c       |  2 +-
 builtin/rev-list.c    |  4 ++--
 builtin/shortlog.c    |  4 ++--
 builtin/show-branch.c |  2 +-
 builtin/stash.c       | 12 ++++++------
 bundle.c              |  4 ++--
 commit.c              | 20 ++++++++++----------
 commit.h              |  4 ++--
 environment.c         | 33 ++++++++++++++++++++-------------
 environment.h         | 10 +++++-----
 log-tree.c            |  6 +++---
 notes-cache.c         |  2 +-
 notes-utils.c         |  2 +-
 pretty.c              |  8 ++++----
 pretty.h              |  4 ++--
 range-diff.c          |  2 +-
 remote-curl.c         |  2 +-
 replay.c              |  4 ++--
 repository.c          |  2 ++
 revision.c            | 12 +++++++-----
 sequencer.c           | 32 ++++++++++++++++----------------
 submodule.c           |  2 +-
 32 files changed, 113 insertions(+), 102 deletions(-)
Signature · 1 line
2.43.0