All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Phillip Wood <phillip.wood123@gmail.com>
Cc: Harald Nordgren <haraldnordgren@gmail.com>,
	 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: Re: Changing default config values (was Re: What will come after Git 2.56?)
Date: Sun, 27 Sep 2026 12:32:10 -0700	[thread overview]
Message-ID: <xmqqfqyuqymd.fsf@gitster.g> (raw)
In-Reply-To: <7ccc822a-6bd0-44e2-8d6b-ca525d729207@gmail.com> (Phillip Wood's message of "Sun, 27 Sep 2026 14:48:31 +0100")

Phillip Wood <phillip.wood123@gmail.com> writes:

> 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.

I think we are already doing that (We've already changed the default
merge strategy at least twice, for example), but the thing is, "net
benefit" and "potential downside" are both mere speculations until
you actually release such a change and wait for months to see
distros deliver the change to their users.

> 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.

You'd need a way to poll the value of core.defaults to see the
population distribution to see how beneficial the proposed update
is, but then wouldn't it be easier to measure on the target
configuration itself?  How big a population cares enough to bother
setting diff.algorithm to value X?  Multiply it by 3 and you may get
a rough approximation of how much of your entire population would
love to live in a hypothetical world where algorithm X were the
default.

  reply	other threads:[~2026-09-27 19:32 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         ` Changing default config values (was Re: What will come after Git 2.56?) Phillip Wood
2026-09-27 19:32           ` Junio C Hamano [this message]
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=xmqqfqyuqymd.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=emilyshaffer@google.com \
    --cc=git@vger.kernel.org \
    --cc=haraldnordgren@gmail.com \
    --cc=kristofferhaugsbakk@fastmail.com \
    --cc=peff@peff.net \
    --cc=phillip.wood123@gmail.com \
    --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.