All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Wood <phillip.wood123@gmail.com>
To: Junio C Hamano <gitster@pobox.com>,
	Harald Nordgren <haraldnordgren@gmail.com>
Cc: ps@pks.im, git@vger.kernel.org, sandals@crustytoothpaste.net,
	Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
	Emily Shaffer <emilyshaffer@google.com>,
	Jeff King <peff@peff.net>
Subject: Changing default config values (was Re: What will come after Git 2.56?)
Date: Sun, 27 Sep 2026 14:48:31 +0100	[thread overview]
Message-ID: <7ccc822a-6bd0-44e2-8d6b-ca525d729207@gmail.com> (raw)
In-Reply-To: <xmqqpky21mh6.fsf@gitster.g>

On 24/09/2026 20:24, Junio C Hamano wrote:
> Harald Nordgren <haraldnordgren@gmail.com> writes:
> 
>> I have a list of breaking changes that I would like to introduce, I was hoping
>> they could be considered before 3.0 is out -- otherwise I fear I have to wait
>> another 10 years for 4.0, I would like to change the default values of these
>> config values:
> 
> I do not know how long it will be before 4.0, but if you do not have
> any draft code on the list or even design presented before this
> message, it is way too late for 3.0.  No, these won't be part of it.
> 
> But some may not even qualify as "breaking changes", so after 3.0,
> some of them may not have to wait until 4.0 happens.

A couple of thoughts about changing the default values for config variables:

For ui related config values such as diff.algorithm, diff.colorWords, 
commit.verbose, merge.conflictStyle etc. where their effect is largely 
cosmetic and the potential negative impact of the value changing is 
limited, I wonder if we should be more willing to take a 
consequentialist approach and allow changes where the net benefit 
outweighs any potential downside. Currently we tend to have a 
deontological approach that views any negative effect on even a small 
number of current users as inherently bad. A consequentialist approach 
would allow us more flexibility to change defaults, though we'd need 
some way to try and gauge the relative costs and benefits.

One way we could change the default values of a set of config variables 
is to have a config variable, say "core.defaults", that determines the 
default values of the config variables we'd like to change. That would 
allow us to have a set of "modern defaults" that can evolve over time 
and can be easily enabled or disabled (a bit like 
"feature.experimental"). We may want to extend the concept slightly so 
that different values for "core.defaults" tune the defaults for 
different workflows; for example having a setting that implies 
"push.default=current" and "status.compareBranches=@{upstream} @{push}" 
for triangular workflows. If we take the approach suggested above, the 
modern defaults could be enabled by default and it would be easy for 
users to opt-out by setting a single config variable.

Thanks

Phillip


  reply	other threads:[~2026-09-27 13:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-06  7:03 What will come after Git 2.56? Junio C Hamano
2026-09-06 18:14 ` brian m. carlson
2026-09-07  8:23   ` Patrick Steinhardt
2026-09-24 18:35     ` Harald Nordgren
2026-09-24 19:24       ` Junio C Hamano
2026-09-27 13:48         ` Phillip Wood [this message]
2026-09-27 19:32           ` Changing default config values (was Re: What will come after Git 2.56?) Junio C Hamano
2026-09-28  3:32           ` Jeff King
2026-09-25  1:20       ` What will come after Git 2.56? Kristoffer Haugsbakk
2026-09-25 16:42         ` D. Ben Knoble
2026-09-07  9:30   ` Emily Shaffer
2026-09-08 15:46   ` rsbecker
2026-09-08 15:59     ` brian m. carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ccc822a-6bd0-44e2-8d6b-ca525d729207@gmail.com \
    --to=phillip.wood123@gmail.com \
    --cc=emilyshaffer@google.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=haraldnordgren@gmail.com \
    --cc=kristofferhaugsbakk@fastmail.com \
    --cc=peff@peff.net \
    --cc=phillip.wood@dunelm.org.uk \
    --cc=ps@pks.im \
    --cc=sandals@crustytoothpaste.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.