* [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state
@ 2026-02-08 6:29 Ayush Jha
2026-02-19 9:42 ` Ayush Jha
2026-02-19 10:42 ` Phillip Wood
0 siblings, 2 replies; 4+ messages in thread
From: Ayush Jha @ 2026-02-08 6:29 UTC (permalink / raw)
To: git
Cc: Christian Couder, Karthik Nayak, Justin Tobler, Ayush Chandekar,
Siddharth Asthana, Lucas Seiki Oshiro, Ayush Jha
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(-)
--
2.53.0.windows.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state
2026-02-08 6:29 [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state Ayush Jha
@ 2026-02-19 9:42 ` Ayush Jha
2026-02-19 10:42 ` Phillip Wood
1 sibling, 0 replies; 4+ messages in thread
From: Ayush Jha @ 2026-02-19 9:42 UTC (permalink / raw)
To: git
Cc: Christian Couder, Karthik Nayak, Justin Tobler, Ayush Chandekar,
Siddharth Asthana, Lucas Seiki Oshiro
Hi all,
I wanted to gently follow up on this RFC series in case it may have
been missed in the thread. I would really appreciate any feedback
whenever you have time.
If there are concerns, suggestions, or areas that need clarification,
I’d be happy to revise the series accordingly.
Thank you for your time and review.
Best regards,
Ayush
On Sun, Feb 8, 2026 at 12:00 PM Ayush Jha <kumarayushjha123@gmail.com> wrote:
>
> 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(-)
>
> --
> 2.53.0.windows.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state
2026-02-08 6:29 [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state Ayush Jha
2026-02-19 9:42 ` Ayush Jha
@ 2026-02-19 10:42 ` Phillip Wood
2026-02-19 15:01 ` Ayush Jha
1 sibling, 1 reply; 4+ messages in thread
From: Phillip Wood @ 2026-02-19 10:42 UTC (permalink / raw)
To: Ayush Jha, git
Cc: Christian Couder, Karthik Nayak, Justin Tobler, Ayush Chandekar,
Siddharth Asthana, Lucas Seiki Oshiro
Hi Ayush
On 08/02/2026 06:29, Ayush Jha wrote:
> 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().
Doesn't the lazy initialization here suffer from the same problems that
Junio explained in https://lore.kernel.org/xmqqpl63b2tm.fsf@gitster.g ?
Changing config settings that are currently parsed eagerly to being
parsed lazily opens up a whole can of worms and is best avoided. As
Junio said Bello Olamide is exploring a different approach that avoids
the lazy parsing.
Thanks
Phillip
> 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(-)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state
2026-02-19 10:42 ` Phillip Wood
@ 2026-02-19 15:01 ` Ayush Jha
0 siblings, 0 replies; 4+ messages in thread
From: Ayush Jha @ 2026-02-19 15:01 UTC (permalink / raw)
To: phillip.wood
Cc: git, Christian Couder, Karthik Nayak, Justin Tobler,
Ayush Chandekar, Siddharth Asthana, Lucas Seiki Oshiro
Hi Phillip,
After revisiting this earlier patch in light of the recent discussion,
and based on my current understanding, I agree that this change falls
under the same lazy-parsing concerns that Junio previously
highlighted.
Thank you for pointing that out.
Best regards,
Ayush
On Thu, Feb 19, 2026 at 4:12 PM Phillip Wood <phillip.wood123@gmail.com> wrote:
>
> Hi Ayush
>
> On 08/02/2026 06:29, Ayush Jha wrote:
> > 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().
>
> Doesn't the lazy initialization here suffer from the same problems that
> Junio explained in https://lore.kernel.org/xmqqpl63b2tm.fsf@gitster.g ?
> Changing config settings that are currently parsed eagerly to being
> parsed lazily opens up a whole can of worms and is best avoided. As
> Junio said Bello Olamide is exploring a different approach that avoids
> the lazy parsing.
>
> Thanks
>
> Phillip
>
> > 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(-)
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-19 15:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-08 6:29 [RFC GSoC PATCH v3 0/2] Make read_attr() repository-aware by introducing a lazy bare state Ayush Jha
2026-02-19 9:42 ` Ayush Jha
2026-02-19 10:42 ` Phillip Wood
2026-02-19 15:01 ` Ayush Jha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox