git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Introduce configs for default repo format
@ 2024-08-15  7:59 Patrick Steinhardt
  2024-08-15  7:59 ` [PATCH 1/5] t0001: exercise initialization with ref formats more thoroughly Patrick Steinhardt
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Patrick Steinhardt @ 2024-08-15  7:59 UTC (permalink / raw)
  To: git; +Cc: Sebastian Schuberth

Hi,

to set up the default object and ref storage formats, users have to set
up some environment variables. This is somewhat unwieldy and not really
in line with how a user typically expects to configure Git, namely by
using the config system. It makes it harder than necessary to globally
default to the different formats and requires the user to munge with
files like `.profile` to persist that setting. Needless to say, this is
a bit of an awkward user experience.

This patch series thus introduces two new configs to set the default
object hash and ref storage format for newly created repositories. Like
this, folks can simply use the global- or system-level config to adapt
to their needs. This also has the advantage of giving them the ability
to adapt the default formats via guarded includes, such that e.g. repos
in some filesystem hierarchy use format A, whereas others use format B.

This comes from a discussion with Sebastian (Cc'd) at the Git User Group
in Berlin yesterday.

Thanks!

Patrick

Patrick Steinhardt (5):
  t0001: exercise initialization with ref formats more thoroughly
  t0001: delete repositories when object format tests finish
  setup: merge configuration of repository formats
  setup: make object format configurable via config
  setup: make ref storage format configurable via config

 Documentation/config/init.txt |  10 +++
 setup.c                       | 101 ++++++++++++++++-------
 t/t0001-init.sh               | 145 +++++++++++++++++++++++++++++++---
 3 files changed, 216 insertions(+), 40 deletions(-)

-- 
2.46.0.46.g406f326d27.dirty


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-08-16 17:13 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15  7:59 [PATCH 0/5] Introduce configs for default repo format Patrick Steinhardt
2024-08-15  7:59 ` [PATCH 1/5] t0001: exercise initialization with ref formats more thoroughly Patrick Steinhardt
2024-08-15 20:35   ` Justin Tobler
2024-08-15  8:00 ` [PATCH 2/5] t0001: delete repositories when object format tests finish Patrick Steinhardt
2024-08-15  8:00 ` [PATCH 3/5] setup: merge configuration of repository formats Patrick Steinhardt
2024-08-15 21:37   ` Justin Tobler
2024-08-16  8:06     ` Patrick Steinhardt
2024-08-15  8:00 ` [PATCH 4/5] setup: make object format configurable via config Patrick Steinhardt
2024-08-15 22:17   ` Justin Tobler
2024-08-15  8:00 ` [PATCH 5/5] setup: make ref storage " Patrick Steinhardt
2024-08-15 22:29   ` Justin Tobler
2024-08-15 15:24 ` [PATCH 0/5] Introduce configs for default repo format shejialuo
2024-08-15 21:16   ` brian m. carlson
2024-08-15 21:52     ` Junio C Hamano
2024-08-16  8:07       ` Patrick Steinhardt
2024-08-15 21:22 ` brian m. carlson
2024-08-16  8:56 ` [PATCH v2 " Patrick Steinhardt
2024-08-16  8:56   ` [PATCH v2 1/5] t0001: exercise initialization with ref formats more thoroughly Patrick Steinhardt
2024-08-16  8:56   ` [PATCH v2 2/5] t0001: delete repositories when object format tests finish Patrick Steinhardt
2024-08-16  8:56   ` [PATCH v2 3/5] setup: merge configuration of repository formats Patrick Steinhardt
2024-08-16  8:57   ` [PATCH v2 4/5] setup: make object format configurable via config Patrick Steinhardt
2024-08-16 17:13     ` Junio C Hamano
2024-08-16  8:57   ` [PATCH v2 5/5] setup: make ref storage " Patrick Steinhardt
2024-08-16 14:46   ` [PATCH v2 0/5] Introduce configs for default repo format Justin Tobler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).