Skip to content

RFC Make read_attr() repository-aware by introducing a lazy bare state

Ayush Jha git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest0 of 2 patches 3 repliesIn review

Patches in v3 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state

This patch series is v3 of an earlier RFC that aimed to remove the dependency on the global the_repository from read_attr().

Based on feedback from Lucas Seiki Oshiro and Junio C Hamano, this iteration introduces a repository-scoped, lazily initialized "bare" state in struct repo_settings, exposed via repo_settings_get_is_bare(). The read_attr() function is then updated to use this helper instead of is_bare_repository().

The series is split as follows:
1/2 repo-settings: add repo_settings_get_is_bare 2/2 attr: use local repository state in read_attr

Comments and suggestions are welcome.

Ayush Jha (2):
repo-settings: add repo_settings_get_is_bare
attr: use local repository state in read_attr

 attr.c          |  3 ++-
 repo-settings.c | 12 ++++++++++++
 repo-settings.h |  5 +++++
 3 files changed, 19 insertions(+), 1 deletion(-)
Signature · 1 line
2.53.0.windows.1