🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2616

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

#2616
From: "D. Ben Knoble"
Date: Sat, 07 Nov 2026 19:49
49 lines
13738 bytes
On Sat, Nov 7, 2026 at 2:36 PM Jelle van der Waa <jelle@vdwaa.nl> wrote:
>
> The new git history subcommands like reword do not support showing the
> full git diff when editing the git commit message. This RFC adds support
> for git history reword behave similiar to git commit --amend --verbose
> except I choose to leave out support the "commit.verbose" configuration
> option.

Just as a first thought, while it is nice to keep the interfaces
consistent with each other, I wonder if we want to reserve a different
meaning for "verbose" in the context of git-history? For example, I've
sometimes wished git-history would show the rewritten commits after
execution:

    commit abc => def
    …

Anyway, my point is, there's a lot of possible meanings for "verbose",
so maybe we could use "--commit-verbose" (blech), "--diff-in-editor",
or some other thing that smarter folks than I will come up with which
clearly signals what we're about?

> Other git history subcommands like split, squash and fixup could also
> support --verbose under some circumstances (without --no-edit for fixup
> or only with --reedit-message for fixup)
>
> I would be happy to work start with landing support for --verbose for
> git history reword, ideally with it also supporting the "commit.verbose"
> configuration option. Further patches could then add support for other
> subcommands where it makes sense.
>
> Jelle van der Waa (2):
>   history: drop redundant strbuf_stripspace()
>   history: add --verbose option for reword
>
>  Documentation/git-history.adoc | 11 +++-
>  builtin/history.c              | 61 ++++++++++++++++++---
>  t/t3451-history-reword.sh      | 97 ++++++++++++++++++++++++++++++++++
>  3 files changed, 160 insertions(+), 9 deletions(-)
>
> --
> 2.56.0

Thanks for an interesting idea.

-- 
D. Ben Knoble
Technical Details
Message-ID: <CALnO6CBarutmydfmHDM=y5yfUCQY5SxKKcoCrd0NXCuNVkDuJQ@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74796-linux-kernel-git=dewy.ru
References: <20261107193020.583215-1-jelle@vdwaa.nl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74796-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com ("D. Ben Knoble")
Newsgroups: linux.kernel.git
Subject: Re: [RFC PATCH 0/2] Support --verbose in git history
Date: Sat, 7 Nov 2026 14:49:53 -0500
Organization: Usenet Network
Message-ID: <CALnO6CBarutmydfmHDM=y5yfUCQY5SxKKcoCrd0NXCuNVkDuJQ@mail.gmail.com>
References: <20261107193020.583215-1-jelle@vdwaa.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4179371"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:YPr+NREhoGhbZ9rV08kAPGsjOMo= sha256:0xh7DTxub52H8ZapPTYThSL1JpqWOg+zVcQLLx6zSvA=
	sha1:MOWviV3XQrz2QEKkccRsqSlnKnE= sha256:5NG4l5E7/AZXXeDYfGqF3ovcfZQStFQc8FOc8d+wRqc=
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 75BC011348C; Sat,  7 Nov 2026 22:50:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=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 ZYNRnfaLvTNc;
	Sat,  7 Nov 2026 22:50:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-74796-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 2A25211347F; Sat,  7 Nov 2026 22:50:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 0A8932A8DB; Sat,  7 Nov 2026 19:50:08 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794081007;
	b=lo91YIccyOSrdEIEuOHCJyVPNcgrkCjorInXSdXgVn6NM8p+GulHtf4TR4vFHgXFd0Q8
	 vTMHyB17/sVPiEK25QdJlGKwn1YMnkgTMa126GxArRDEVWQlzO6eT3Ydn59f1qnm1OSLJ
	 SGeOCKNIgTErYC4M6lZlLJZFbgDB9Xi0PIIjez98CjTqGvxBGcHW1EA3gktKkF03kXUq/
	 X3Uy63wOk/kDMWwx2rVWuJV3Vg9uXhX8G9ElGMG3AqnpObv9M73iAsEYrP5OBShuv0mtb
	 EpnovR2F/QNLLtIXUkUFlRPLILuT3VNLghLoTTYFEJkqRbHuh9rFOQH2GiR9RTDdf6A==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794081007;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=dnqaBg439xQkqBIhixZxiCxQLvaIgNVYj9hFd5oriMg=;
	b=sRkuha20O+Y8rK66Mw0AlOvqLaqMfPbHrVmEsfwcUo1KWGtpXrCtIiXaqga9Pp9uOGGm
	 JmtDuzOUxF/umxzbWpHYKSyNVN0+9wy+ytGZpgJWGB2MPfKhZofvgLLB3yh+mrwsminLz
	 1G6wu4qIgfSmQTyqqDrRWLujAiGtNgT20ckvh5cUTlzk6awkvgSZuclnYpk6eEqMciH3P
	 CC0YLpFAho2/QXVTF5F2FIgYxhNFbMjkc9YP5lUYFOBPoJ34Q9rFs7xAfc/9jYnLEcXx5
	 CraAdzivJJcjsZD/4O3csfVJnC7FknS8YrU5qTT4NrXZ9QqHGeu/Tq4Ns5T5gvepxdw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ozw3qbbi;
	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 7D0E6606A33A;
	Sat,  7 Nov 2026 19:50:07 +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=ozw3qbbi
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.210.174
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794081006;
	b=PFAXgGkr+pTgdWQZdO/4QtgU3CJ8Ax884cjA/Atq+JakRzhHnR26EFspwvwIgV37WDrJ
	 ESc5nVt3WJAIAshgZu3upfqiad0d71JABj8Z9aErAPzmhGNPD1Wit36sXaJrT6oJfM7gT
	 pF99BUAAEvrca7GOnLvt9xNzZU+bWHn80D8B0phS6fxK342DcnVwlyWY0RSf/SF/J42iC
	 khzYXGFHqEMe6HqhkLh58ECmNbFfY8Z/Rnd9uiH5GCOjZfCuFJfvVrJ8Xac0OHFVcOvfb
	 Uo0fM9vmOyZwcV5HbivCe4gY6oSyEnhYTFsP6axdOxGm9Zo+Oq62Ez+XM9L8CuWklEA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794081006;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
	 In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=dnqaBg439xQkqBIhixZxiCxQLvaIgNVYj9hFd5oriMg=;
	b=km8jHh49VPeLyotEU7kk1qP3uR8Eh4M3ZfFcpXXvdGcbG/dY4B55W/2f5uRTsrPE1BF/
	 ngkGm2+My7071ZWrcixzjwqpPsl4sN6qS7TP3S6pGDnZmDTEoQaPqGhQYpRBJZrBcUHV4
	 5tSGw4Z31mg8+zKI5i+lR9Kl5fKsS4auZg3b2kUOf1J7/gGuoHpAqM7w7h+e4w3UuznsF
	 BcgNBJvbYSoaYrj1FyfGxtifbOgqZV/1wPMpNltmA6Vk9q3oJwO8aAdcNMGvuNMxcNGEN
	 Uxt2HTfoLoka+phXHr2g4m1L6257UN1V/fFbn+qFpQAgqfnlee0Z184GR3iSDLtWvEQ==
X-ARC-Authentication-Results: i=2; 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=ozw3qbbi;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.210.174
X-Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174])
	(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 3B764606A330
	for <git@vger.kernel.org>; Sat,  7 Nov 2026 19:50:06 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B764606A330
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-pf1-f174.google.com with SMTP id d2e1a72fcca58-89d6bd67045so7350b3a.0
        for <git@vger.kernel.org>; Sat, 07 Nov 2026 11:50:06 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1794081005; cv=none;
        d=google.com; s=arc-20260327;
        b=BYF6cX6meUX8T14ErN6mYiTyO1xOWuU2yhMnD6+dy31iFV3FdmpmKp6+dR9MuQLmuy
         wU5598Z7TfivFmoFz0m1iBnTYbPb0eP0QypE6Httx7LruyRu5dsoLJdjalk9p9/Fa5MX
         lNbRNmmrHRnCVmQyCZEhIwnJfF7lilrah3Z5raG4eF3amxB6sKthbsv4kLFOrMzad3tW
         LDgpH+5PkII7lsS0aSVgM988RTcTSDknfzKG0FxZ1GvwavSmknmCo0W9KLkcnTtLIuO4
         CyFiOcXGozv2wHUfCaEhum3/IYNg9ldKHX9n2Cghb2ZUFlJ1vRjiGT5uPTv9fch2X4xj
         biew==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=dnqaBg439xQkqBIhixZxiCxQLvaIgNVYj9hFd5oriMg=;
        fh=6z2icEuc8DnLHVXZGIB7QEf1Q5MKJD83p6ZP0Ja2amI=;
        b=I8qY/jTLo8C9Xxq6qzG826vXgtLIwQUmWtn6JqWLOXQxB1eUhsXM4xhy3U16SYYEIu
         PKXWDL0vAh1QjLO8orlzccfo8g8WMYSNdLYZBTKbM5VgOvgwKpNsGE0UlSmlpMOTycYb
         lIF3Dk/vcAxJolh/cdpMGdu0Z08/i+TFnej5JtNjNxIVTgu3PUtDghHJJZZOdoFGpVFl
         ZxQoEif2gbz8X0IMycUN7SwGfLVn4xFXPZ1dov9MTNWbiMEb+QDYbwc1lFpNiBoM1BzR
         WakPyeYeceBADJ6KKL5OKSCCOr5z6uu25N+fa8bKC40gs68qcwqaEqXLvRw0O9+XoLwz
         hqFw==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794081005; x=1794685805; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=dnqaBg439xQkqBIhixZxiCxQLvaIgNVYj9hFd5oriMg=;
        b=ozw3qbbiPQlsmJPZ9ZOem2R/J7G8SUwYJdJwTVR4TAOTEJerO8X8R99yCDyBSxFzHh
         gY8AvokwRRIdAGln8MTEpRW6y75zogeh+wvzAPRlVqfLTvZO4o1FYdTBEq867l3tGo79
         5L2mZHXtGN1nxfFEVvNQ5bTffDsgD0/cUiJ+azp9tcJ9wPDCp2wlWWBS9MryXhdroXaF
         zWzfLIxx8cxweT/Bzm7xAZ0n20lC/EHxjziEcHh1/j8Cj3tsI+lo1eghdOcHRBv0NfJu
         hUVZtbIFpHEFICkyq7ZXTkM+3QCijdYP4XE3uTUgy2ZGEGy65YhKPi9LD8H48LaV+wBu
         vG0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794081005; x=1794685805;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=dnqaBg439xQkqBIhixZxiCxQLvaIgNVYj9hFd5oriMg=;
        b=euR9y+JuEMgWOO9OGCCjFsLlbC2VoBmF7adRWS7xBn+ZvEFocBJBC9Mw1nskxnc71S
         /UeGyxYMTS0b5glcbzybQOjN7yh+0nRWp7k2y6osSxwgoh64xkRlznxHeqS+SkZatnhD
         6amQaeQT3XlvYQ5bZO6w67BBlXhKCYRhgX5+SsCydFnRCKtyiPmt2ZufWRmEqAkCD9f3
         UGZy2ngDnvP/IPoRGa+4ZEsbY12Ine6+9D4hg0Bvcza+MWeBWwRZjSbyUX1bKGq4T8hY
         bWkUcJ/CmXrKK5QYQ49OX1Wb60v34ER/8T3NQylVmcJtrFsDaxruCXWi+CvuUazyon7h
         Rkkg==
X-Gm-Message-State: APuU4Z8PY8WkckKw9z4j/TjdoVZ6kbNt3tvgFkIMiXnqgK89OEUnxaAB
	jW5h+Vw54GKLYuYzUYi5YW3YbYhNsVq6r5sAdYRXYfcmRBq0fLqaYIBpmjzpWtdBIm0N02xhNml
	sMFqlniuX3trK5uJvRZ/AZtOu4bFl1oU=
X-Gm-Gg: AYBFou0+sLy6QeT9XsWmi7imLsZ9xzEyuWQD4jxelZ48AoyZ0GxKFREKLIdmJ3BJq8b
	79g9lduHYuu37aIF2OXW697m/PA+SBj6Le4eMFc9TwSak2OWikEYzN1CRu033GzP+3PyYKmB+VT
	I+zjwCgNyzPYRItCqeU4q6Z8963Zlal/Yfde1TShqp4jQIjMNXWRfxT9FXEnfsydQxC4X+4vp7s
	pERdE+MSYIkf1gxjp+MteZhIH4xDcpv6nB0t+05x5lfkJstvCuTykniArq4MNzo8kDGqxsCPBjE
	F3V5TeE1VN37C74E+y6VSx8U3DU9dgDj/qFaSYcNVfwQODukjzWNBQbW6WHG0o+N2LgWdcqrDlJ
	mPH+KVVzN2O1qTmxFknrxUXEuf8JFWK4KUksobKXm8EGYoANCKqJI7KVkjjUqGIxMXoQmG1YsKR
	tGvIi9mdiS5ncmQ+D7gWz9dv03nLR+14tvG0wGrPkoX8cgsxMld2IXzMT84POCJLc6eqqkrwdPL
	EC2XMAAaXXkKHd7l+GGYWcWoIuXg9vyuj6y
X-Received: by 2002:a05:6a00:cb85:b0:8a0:582c:5c09 with SMTP id
 d2e1a72fcca58-8b4e72b16eemr1471660b3a.25.1794081005338; Sat, 07 Nov 2026
 11:50:05 -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-In-Reply-To: <20261107193020.583215-1-jelle@vdwaa.nl>
X-Gm-Features: AclHuK8qaJWViey0XBMD5YGn9cZ5RPcn0GStrY7iC-g6_WhaMFOU4BRC86c5dfU
X-Cc: git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>, 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>