* [PATCH] repo_config_values: freeze the structure for now
@ 2026-11-03 19:52 Junio C Hamano
2026-11-04 6:36 ` Patrick Steinhardt
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2026-11-03 19:52 UTC (permalink / raw)
To: git; +Cc: Patrick Steinhardt
The configuration and settings per repository is currently in an
unfortunate mess. Especially given that repo_config_values() cannot
work on any repository instance other than the_repository, moving
more members into this structure is unwelcome.
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
* Just for wider visibility. This is a resend of the patch in
https://lore.kernel.org/git/xmqqh5hzjdwr.fsf_-_@gitster.g/
environment.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/environment.h b/environment.h
index 49c86e8879..87b0ab7251 100644
--- a/environment.h
+++ b/environment.h
@@ -123,6 +123,13 @@ enum object_creation_mode {
OBJECT_CREATION_USES_RENAMES = 1
};
+/*
+ * See https://lore.kernel.org/git/anlmwaEtwcCPse1N@pks.im/ and later
+ * discussions. Until we figure out what to do with this and
+ * repo_settings, and allow them to be truly usable on a repository
+ * instance that is not the_repository, do *NOT* add any new members
+ * to this structure.
+ */
struct repo_config_values {
/* section "core" config values */
char *attributes_file;
--
2.56.0-511-g14903f623d
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] repo_config_values: freeze the structure for now
2026-11-03 19:52 [PATCH] repo_config_values: freeze the structure for now Junio C Hamano
@ 2026-11-04 6:36 ` Patrick Steinhardt
2026-11-04 16:13 ` Derrick Stolee
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Steinhardt @ 2026-11-04 6:36 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Tue, Nov 03, 2026 at 11:52:10AM -0800, Junio C Hamano wrote:
> The configuration and settings per repository is currently in an
> unfortunate mess. Especially given that repo_config_values() cannot
> work on any repository instance other than the_repository, moving
> more members into this structure is unwelcome.
>
> Acked-by: Patrick Steinhardt <ps@pks.im>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
You already got my Acked-by, but let me state explicitly that I'm happy
with this change. Thanks!
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] repo_config_values: freeze the structure for now
2026-11-04 6:36 ` Patrick Steinhardt
@ 2026-11-04 16:13 ` Derrick Stolee
0 siblings, 0 replies; 3+ messages in thread
From: Derrick Stolee @ 2026-11-04 16:13 UTC (permalink / raw)
To: git
On 11/4/2026 1:36 AM, Patrick Steinhardt wrote:
> On Tue, Nov 03, 2026 at 11:52:10AM -0800, Junio C Hamano wrote:
>> The configuration and settings per repository is currently in an
>> unfortunate mess. Especially given that repo_config_values() cannot
>> work on any repository instance other than the_repository, moving
>> more members into this structure is unwelcome.
>>
>> Acked-by: Patrick Steinhardt <ps@pks.im>
>> Signed-off-by: Junio C Hamano <gitster@pobox.com>
>
> You already got my Acked-by, but let me state explicitly that I'm happy
> with this change. Thanks!
I will also contribute my +1 to this. This has grown organically, but
clearly needs a redesign from first principles to avoid making the
situation worse.
Thanks,
-Stolee
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-04 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 19:52 [PATCH] repo_config_values: freeze the structure for now Junio C Hamano
2026-11-04 6:36 ` Patrick Steinhardt
2026-11-04 16:13 ` Derrick Stolee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox