🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2928

Re: [RFC PATCH 0/2] Support --verbose in git history

#2928
From: Ben Knoble
Date: Wed, 11 Nov 2026 15:39
79 lines
14055 bytes
> Le 11 nov. 2026 à 09:03, Patrick Steinhardt <ps@pks.im> a écrit :
> 
> On Wed, Nov 11, 2026 at 01:57:46PM +0000, Phillip Wood wrote:
>> Hi Patrick
>> 
>>> On 11/11/2026 10:46, Patrick Steinhardt wrote:
>>> On Tue, Nov 10, 2026 at 12:15:20PM -0500, Ben Knoble wrote:
>>>>> Le 10 nov. 2026 à 08:13, Karthik Nayak <karthik.188@gmail.com> a écrit :
>>>>> Phillip Wood <phillip.wood123@gmail.com> writes:
>>>>>> 
>>>>>> Another case where we might not want the diff is scripted editing as it
>>>>>> is much easier if the script does not have to worry about the diff
>>>>>> getting in the way of its edits. Personally I'd be happy to see this on
>>>>>> by default - the history command is marked as experimental so if having
>>>>>> it on by default rather than following "commit.verbose" proves to be
>>>>>> problematic we can always change it in the future. If we were staring
>>>>>> again I'd also make "commit.verbose" on by default as well so maybe I'm
>>>>>> biased.
>>>>>> 
>>>>> I'm on board with this suggestion. Plus, I see 'git history' to be more
>>>>> user facing and it's always nicer to have better defaults for users.
>>>>> Showing diffs and verbose information seems to be inline with that. We
>>>>> could add an option to disable such output for scripts (but that can be
>>>>> done later as you suggested).
>>>>> <signature.asc>
>>>> 
>>>> I can live with opt-out as long as I can turn it off via config.
>>> 
>>> Yeah, agreed. For me there's two important parts, where being able to
>>> disable this is the first one. The second part is that we need to make
>>> sure that such a format can work for every subcommand of git-history(1)
>>> so that we don't have to have multiple different formats for it.
>> 
>> Can I just check what you mean by "format" please. It is not clear if that
>> refers to the option name, or the way the diff is presented in the message
>> template (or both?).
> 
> Both probably, but what I meant is the output format. So it would need
> to be able to cover:
> 
>  - Changes to the commit layout (e.g. `git history split`).
> 
>  - Changes to the commit order (a future `git history move`).
> 
>  - Changes to the commit message.
> 
>  - Updates to multiple references.
> 
> I don't think we need to have everything implemented in a first
> iteration. But the output format should be flexible enough to display
> these kinds of changes.
> 
> To me it almost feels like what we want is essentially the format used
> by git-range-diff(1).
> 
> Patrick

Interesting; I certainly would appreciate range-diff-like content *somewhere*
when using git-history. The original proposal was more like commit’s
verbose diff in the editor, though, and I can see a desire to have that
in all of the supported subcommands, too (maybe just as a reminder).

Decisions, decisions…
Technical Details
Message-ID: <6F40E344-D1D1-487E-B5C4-1ADC0B06F749@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75218-linux-kernel-git=dewy.ru
References: <avR1u_y2IQ8WoJXe@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75218-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [RFC PATCH 0/2] Support --verbose in git history
Date: Wed, 11 Nov 2026 10:39:51 -0500
Organization: Usenet Network
Message-ID: <6F40E344-D1D1-487E-B5C4-1ADC0B06F749@gmail.com>
References: <avR1u_y2IQ8WoJXe@pks.im>
MIME-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="884303"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AlFrEINVLqKhePG88F3N8auNXng= sha256:bPpV8NlntTO0fO/4ULEClKN0fl0JQwjt6RkQDYdLVGc=
	sha1:uvPmTjgMoCCmTNFKmY0VCXbe1Zs= sha256:KV1ssE14TQ/kuviszvxe22LMM9S6WdkH1xltVbcHnUc=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7F0C8113F36; Wed, 11 Nov 2026 18:42:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Status: No, score=-3.148 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GKep6M9KkVvX;
	Wed, 11 Nov 2026 18:42:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-75218-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 5FCA8113F0E; Wed, 11 Nov 2026 18:41:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 795016248DE; Wed, 11 Nov 2026 15:40:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794411605;
	b=ipeLqPVKVmVo1wjwBmiXyFy5H4k9eyu2MGksGQIe/JLYRTVCxKyjLsZqN6qNZgVE/gKa
	 qUNwDaUpGgduB7peyovHm29KzXs4bg4KwTMa2VdatQxL3y2h3KG6CHu6dGa12Qkz6B+5C
	 /5lXSho7Y+py6ObNiq357WXJZKhs3EG6lsYtEoJwncYs1U+CSkWx9dtoS0uys2i4zYQUV
	 npmpEyX2m1vjwM6WykCywsOHxZAD/tkcLx/zyEZLnvNq8MpyX9v0ztjrvOWhwnyEHZFOp
	 mBunuUgu8+sIT20/1QTotawPG8BfyhAeGapkpY/eMQuoLPknZ6XlEcG9z1Z/ilcnHdw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794411605;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Content-Type:Content-Transfer-Encoding:
	 From:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:Mime-Version:Subject:Date:
	 Message-Id:References:Cc:In-Reply-To:To:X-Mailer;
	bh=zE0RBqUihkEn6+uEWymsSdBJFN0qKJm7NQBGIWUCiO8=;
	b=o90+qucxNeOLti1kjlfLLiDT7/+LBgEPwWW5qg99k+amyxaK+z/Ldu1QDfgt3rglxZYq
	 KEqIzFHnnTo2ffQ7V+KLyw5wjCzKLPCnZOFo9IOZBThKbpBhtXAeXaIn+Vt8C83H/uFYY
	 Fk/Jr6dl3BSGb+r+VG1RzNyJWGIgzbALji19O82wjC9Vp7KwLbkmw0AkXOUNWdOBmrrQi
	 ziP28iqZIKJajqO0kcXhAfrWmmme9eorlMAJEtgV0rK4VjPnvv5TiSDgm74sYKX+KG5//
	 EZHBqMSGRuKRzSFOLPxZWOJEVHQ0HcWHBiqzSnPM/M9PGEdkXIAMLB4lobstLlXy4pQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="h/OT5TWw";
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1ED606A330;
	Wed, 11 Nov 2026 15:40:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=h/OT5TWw
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794411604;
	b=HZepK+jxITYCdV/mQGcVx8Lnleeb9z+hz5P8t0zJvrmTGxNEQVTDO4eNoMVeDZYtzgA4
	 zirAJS1IHGeug5yuKcs6vewVOo8CF9nzSuTr8cIxyihfzYk2OQFcO3OQubM0fBBzPQp+A
	 4CzaVMKhVJLNQ4gD5LyCTHx4+z09f4a7PbBBePg4darEdwU6Jqp174juQUq8aOjEkhT2u
	 7dAKl9xD6r6BtbBF2Ub1Grk0WRgt/S6GjzD+JDWp9LxlCxC/MRTESOA8HHcLGCUGS8QRd
	 xPWPE7rVAU3EgyiDMPXUGwl8mcZNIAAYMeBhRXcg/B2wBxiHs3KPMEXADzNVLYqz9UA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794411604;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Content-Type:Content-Transfer-Encoding:From:Mime-Version:Subject:Date:
	 Message-Id:References:Cc:In-Reply-To:To:X-Mailer;
	bh=zE0RBqUihkEn6+uEWymsSdBJFN0qKJm7NQBGIWUCiO8=;
	b=qWpVQuSXeVIBZ43ixYTOa2DjrptzJMvf/ty1Z8x7CWusObyirMvn4wtUD8VFJbuOpDRF
	 spTPdZ2iwxEo7Y6OjN76pqZhxvU51xWAYx1g5g2dgAV7OQ4EteC3pR6nlBf0vaPLVXj0K
	 3VrJLpx+sHemm+6qnu8fC6NZXfG1YvWWLFiZQopmBPEFoG0Pmmo5kEaiwAxRB3bnF5LrH
	 /4DZ0Ad284h/2CCf1jp8wzKpStW0pY7/I/4ugm+xCp3I3vkQtR/MMEvB9vEgDnr8OjMzQ
	 KnH1BZI0rkM2tvi6C0JwBppPCwR3XYcVEw3fYRhdRbJi+UD7/RlOjE1jlYEtVObT43A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="h/OT5TWw";
	arc=none smtp.remote-ip=74.125.224.45
X-Received: from mail-yx1-f45.google.com (mail-yx1-f45.google.com [74.125.224.45])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E815606A324
	for <git@vger.kernel.org>; Wed, 11 Nov 2026 15:40:03 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E815606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yx1-f45.google.com with SMTP id 956f58d0204a3-6798af41644so2755233d50.2
        for <git@vger.kernel.org>; Wed, 11 Nov 2026 07:40:03 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794411603; x=1795016403; darn=vger.kernel.org;
        h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
         :from:content-transfer-encoding:content-type:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=zE0RBqUihkEn6+uEWymsSdBJFN0qKJm7NQBGIWUCiO8=;
        b=h/OT5TWwgOM7TcJ2AYpFfYCimFEEOBkCeQlZgarIsoYK3UyeVfoQAXUraNMsCAwe0W
         CqnOIhl+MSTseWEhqiDSLYsSADYdoaT4QP8PEEMy3bBlYbo5Gjalu1IwhRAg3DkX9ZYf
         CwRuIL/NI5nI3/U1sHkjDfyKgKg0XhGuSq0TYswmbyKfmtH5NJYF03Y00pv5Pee7sMUq
         N5/nYhhV87d7HZDCvZ376mZHsCSEvgTFFf2rq3vZN62Bi//8JM/sh7NrTomCANnzcO45
         yvDPISP0ylAz3L0IuzFuWwT3kGB+r6Hipr/li8aEmN3JHd5kVNNDUDZPuXabhXF3tSyH
         N4kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794411603; x=1795016403;
        h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
         :from:content-transfer-encoding:content-type:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=zE0RBqUihkEn6+uEWymsSdBJFN0qKJm7NQBGIWUCiO8=;
        b=xFAX4DhoCMjCXqy5iQ57ZgO23mRBlOeCH2FHTLxwRnj/gvMazXFimoR8nkbwPzfpnA
         ZFAAImWtnufICLt39J1nxrGrOoChuFO1cb7yNjug50TqFaVd5G/OqL+aDpCtMjCqG3+q
         LEi4AkkEbAmiX4PW7RXjLLa9UkZoRVm/5tpsJTAhXGZqlpV2u6Nubnuk5ixv3D0jQ9Mz
         TQWVBNfZdUNaAdmpG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8cvKTXYOpxc7DDwgQlrh9Bk5ID6yPmihk+vxXpuozlATZm
	+Nap0=
X-Received: by 2002:a05:690e:16a1:b0:677:cdbf:41ad with SMTP id 956f58d0204a3-67c67c7fbe2mr2167731d50.12.1794411602789;
        Wed, 11 Nov 2026 07:40:02 -0800 (PST)
X-Received: from smtpclient.apple ([2600:1004:b092:7eb8:5dfc:125f:18b7:8759])
        by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67c58811008sm4762133d50.3.2026.11.11.07.40.02
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 11 Nov 2026 07:40:02 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Cc: Phillip Wood <phillip.wood123@gmail.com>,
 Karthik Nayak <karthik.188@gmail.com>, Jelle van der Waa <jelle@vdwaa.nl>,
 git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
 Phillip Wood <phillip.wood@dunelm.org.uk>,
 Harald Nordgren <haraldnordgren@gmail.com>,
 René Scharfe <l.s.r@web.de>
X-In-Reply-To: <avR1u_y2IQ8WoJXe@pks.im>
X-Mailer: iPhone Mail (23D8133)