πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2612

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

#2612
From: Jelle van der Waa
Date: Sat, 07 Nov 2026 19:30
26 lines
9484 bytes
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.
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
Technical Details
Message-ID: <20261107193020.583215-1-jelle@vdwaa.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74793-linux-kernel-git=dewy.ru

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-74793-linux-kernel-git=dewy.ru
From: jelle@vdwaa.nl (Jelle van der Waa)
Newsgroups: linux.kernel.git
Subject: [RFC PATCH 0/2] Support --verbose in git history
Date: Sat,  7 Nov 2026 20:30:17 +0100
Organization: Usenet Network
Message-ID: <20261107193020.583215-1-jelle@vdwaa.nl>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4175693"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0GRWKXjXsN3RPt3AWykVxo3BWsQ= sha256:qQfGJrh0dyjwB2Pt0BK7bDHB98XqYnnKFIo67tZlLsk=
	sha1:u62EpFpG0gYk70lxkjbQD16eLjI= sha256:3sYm2YnTO9shuzSBUjlDjd76hwjIYaXdj1CrueVIeyc=
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 C6CD1113487; Sat,  7 Nov 2026 22:31:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	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 (1024-bit key)
	header.d=kpnmail.nl
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 1jvEjDSDpixI;
	Sat,  7 Nov 2026 22:31:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74793-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=vdwaa.nl
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 4892E113477; Sat,  7 Nov 2026 22:31:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1A8F764B34; Sat,  7 Nov 2026 19:30:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1794079850;
	b=JxpZdxCXCAf+H+CVh1jvUaykSpMsQGFcyjg5gTEFkcn8tzt62HeyyC+x/4Xebww279D/
	 iY+zmwyf2zIwXhESDUmBMztwU77mPF8+mjy5cxqq2tvW9xO4kMiXB5Tqqo8M33tNtlXaT
	 muwhPyl35t/7bj6lTrbshg3YWTyGJ2uKTi89v6taoUOWgHFfQZL3ioau3mS8BvJtRreM/
	 j5lWFwlBVUtoxaNW/w96I5ycO8AubnN8/Q99bX0CRLLGzBjTP5ou50PmFmJuZepxSheop
	 pbVinD/otZPGnswyyU83GGNIDT7Y2TliOOVtjKKc4H5hm81edK1r9qw0IOMM02vnxDA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794079850;
	h=X-Original-To:Received:DMARC-Filter:X-KPN-MessageId:Received:
	 DKIM-Signature:X-KPN-MID:X-KPN-VerifiedSender:X-CMASSUN:Received:From:
	 To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=5W1LQ4zI7R6muGFwNe5Sy9nXG4lNiram0dn54KY5Pcg=;
	b=DY3TtcuRJSvkOihXI9Uuy8eGs0OIObsUl6BGF4i1qJw8f0A9W5mo+WMqw55ALc+SHUcE
	 CzAGqBuDDRY9AdLSlheWqUCTmhz3TwNA8hX5yCNo1iWi18UJ1ahpIz8cOmcep3DyIstY9
	 24o0ZByWxPG4bBrlwOsNpIyqkK95NXDScDFHYtZxIeiSYtOC5uVd9GnoGSAOWwbSxDV7U
	 qDcXs0cw5GP1yT7TE7svG4ICFqLvPjyt0dTO4EOGDnO2jB5bdPQOcKPKu182YXCvo/aVJ
	 iJQl+ueK5BJLjWPQdLFnxxMlhBzzN3T4Khef2w5/ifV/z4NXlTjYQuZt3CNqssnGj2Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kpnmail.nl header.i=@kpnmail.nl header.a=rsa-sha256 header.s=kpnmail01 header.b=Flw7Yopw;
	dmarc=none header.from=vdwaa.nl;
	spf=fail smtp.mailfrom=vdwaa.nl;
	arc=fail 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 535B7606A335;
	Sat,  7 Nov 2026 19:30:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=kpnmail.nl header.i=@kpnmail.nl header.a=rsa-sha256 header.s=kpnmail01 header.b=Flw7Yopw
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.121.94.184
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794079849;
	b=EwDyMfSxKjcCXaO4O4V2PvrQ5zLjlbqc0MAqQR07dY4XQ35FBcFRZXPfVfvCah8jmx2k
	 nL1XzHr764sGKF454UOXpQ1X7oFrT2zelHT2sONBeQYazo/BuSIfQilA1C5da+P+cwrGO
	 Bsf84bn5wgjF73mFgdisyri3xqaAOpVZRIPZzu2wklslhh9PWHVgSv4GlUPyYmZlW8UJC
	 eTxj53kdX7KnjNO/E1CVazM/vEYmdBNJxiM4kYcDExB0t9v1X34BxJ4Ss/GX6oXDstwu/
	 Xi9z0mKVepv55hp08vxghrDHBhWdUx26E8zhbCQ4VoPQY8ZvquSX6HVMYFjeWneSNnQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794079849;
	h=DMARC-Filter:X-KPN-MessageId:Received:DKIM-Signature:X-KPN-MID:
	 X-KPN-VerifiedSender:X-CMASSUN:X-Originating-IP:Received:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding;
	bh=5W1LQ4zI7R6muGFwNe5Sy9nXG4lNiram0dn54KY5Pcg=;
	b=5tYLeVkNiVSjBuPD8gIcMmrWdYBIT80EgaK2ILExbpZBTe4gUKigo8h48ggZRvlZtqnY
	 KBTgSfAHXzHKrPHnuvuheGo/iYsp+5xiSarI2iqIMioK4p35hSrBMbHV5YP2zpWLBTkbc
	 U1vVjkBqHBcZDjA1JCRBaGKfoRp0gMNcRowzQD9el6kZbbC8OpnocD9QXj+INNduyJbuk
	 y6Ldm6yKZLefPORlPOsFFkSX5SrX7oAVn57KA6qCSctZ2Rw6jeKBK4+cIazUHpUE6JRQC
	 Gb6n05q4JFAbfv/29DenTIcl5YxafWGoEIilV/EN8ELbVyaQe/iCvMKKCCE9JBdeTHw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=vdwaa.nl;
	spf=fail smtp.mailfrom=vdwaa.nl;
	dkim=pass header.d=kpnmail.nl header.i=@kpnmail.nl header.a=rsa-sha256 header.s=kpnmail01 header.b=Flw7Yopw;
	arc=none smtp.remote-ip=195.121.94.184
X-Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.184])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78D61606A32C
	for <git@vger.kernel.org>; Sat,  7 Nov 2026 19:30:47 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78D61606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=vdwaa.nl
X-Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=vdwaa.nl
X-KPN-MessageId: b640664c-dae1-11f1-a3d1-005056994fde
X-Received: from smtp.kpnmail.nl (unknown [10.31.155.6])
	by ewsoutbound.so.kpn.org (Halon) with ESMTPS
	id b640664c-dae1-11f1-a3d1-005056994fde;
	Sat, 07 Nov 2026 20:30:38 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=kpnmail.nl; s=kpnmail01;
	h=mime-version:message-id:date:subject:to:from;
	bh=5W1LQ4zI7R6muGFwNe5Sy9nXG4lNiram0dn54KY5Pcg=;
	b=Flw7YopwabaEhe/oWF71v0FdMOsDMnLZDY3j21fDsPsibbQVZSKx+LCfsHORQfneDDLNaitEVTziD
	 SkfGbiDqodeAcbKWzZPdjBxhNBiC8m9ZKPUksDN7S0j2H8etBWXe8h8Cb3W7nKxHZUdC96a09UABPT
	 6UjTgn7CB2fAs7dE=
X-KPN-MID: 33|i0hgEfYjkMu/hDyIoxsIeunH4mloLlr6DqWhOI5Ue/LdbS0WHIlSE8chNxYm+iK
 LSncM/1h5vecv9lvw9n0wMQ0KH7jrKsAdcPlL5Zzf31s=
X-KPN-VerifiedSender: No
X-CMASSUN: 33|6RYK9PeWsNSDlmADtPzZLLy3Q6r2piVGBzv/VQtInrfRWzRUm0OqguJsgxxtWFP
 qOu0FrmAnXHKvIrgIFrYT9A==
X-Received: from natrium (77-171-66-179.fixed.kpn.net [77.171.66.179])
	by smtp.kpnmail.nl (Halon) with ESMTPSA
	id b629920f-dae1-11f1-a6e0-00505699772e;
	Sat, 07 Nov 2026 20:30:38 +0100 (CET)
X-Cc: Jelle van der Waa <jelle@vdwaa.nl>,
	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>
X-Mailer: git-send-email 2.56.0
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