Skip to contentSkip to conversation

repo_config_values: freeze the structure for now

PATCH In review Junio C Hamano 3 participants 3 messages Nov 3 – Nov 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 repo_config_values: freeze the structure for now

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.

---

* Just for wider visibility. This is a resend of the patch in
https://lore.kernel.org/git/[email protected]/

 environment.h | 7 +++++++
 1 file changed, 7 insertions(+)
environment.h +7 -0
index 49c86e8879..87b0ab7251 100644
@@ -123,6 +123,13 @@ enum object_creation_mode {
 	OBJECT_CREATION_USES_RENAMES = 1
 };
 
+/*
+ * See https://lore.kernel.org/git/[email protected]/ 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;
Signature · 1 line
2.56.0-511-g14903f623d
#1 lore raw
Quoted 7 lines · Junio C Hamano

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.

You already got my Acked-by, but let me state explicitly that I'm happy with this change. Thanks!

Patrick

#2 lore raw
Quoted 11 lines · Patrick Steinhardt
Quoted 7 lines · Junio C Hamano

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.

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