On 2024-08-15 at 07:59:54, Patrick Steinhardt wrote: > 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. I like the idea of this series, which I think is a much nicer way to set these defaults and can also correctly apply to existing terminal windows. As you mentioned, this also allows different configurations per directory, and it makes it easier if you need to have a system-wide policy for whatever reason. I've taken a look at the patches and they seem fine to me. Thanks for sending them. -- brian m. carlson (they/them or he/him) Toronto, Ontario, CA
Attachment:
signature.asc
Description: PGP signature