🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4092

[PATCH 0/4] rebase: support --whitespace=fix with --interactive

#4092
From: "Alessio Attilio via GitGitGadge...
Date: Mon, 30 Nov 2026 00:01
42 lines
12359 bytes
The apply backend implements --whitespace=fix through git apply, which
prevents users from combining it with interactive rebases and other
merge-backend features. Teach merge replay to compare whitespace-normalized
records, then fix only lines introduced by replay using the path's
whitespace rules. Keep other whitespace actions on the apply backend.

Tests cover interactive replay, attributes, existing whitespace, added
files, end-of-file handling, and unsupported actions.

Closes gitgitgadget/git#1472

Alessio Attilio (4):
  xdiff: support transformed records in merge matching
  merge-ort: fix whitespace in replayed changes
  rebase: route whitespace fixes through the selected backend
  rebase: test whitespace fixes with the merge backend

 Documentation/git-rebase.adoc          |   6 +-
 builtin/rebase.c                       |  55 +++++++-
 contrib/completion/git-completion.bash |   2 +-
 merge-ll.c                             | 182 ++++++++++++++++++++++++-
 merge-ll.h                             |   5 +
 merge-ort.c                            |  52 +++++++
 merge-ort.h                            |   1 +
 t/t3417-rebase-whitespace-fix.sh       | 163 ++++++++++++++++++++++
 t/t3422-rebase-incompatible-options.sh |  17 ++-
 xdiff/xdiff.h                          |   4 +
 xdiff/xmerge.c                         |  16 +--
 xdiff/xprepare.c                       |  57 ++++++--
 xdiff/xtypes.h                         |   2 +
 xdiff/xutils.c                         |  14 ++
 xdiff/xutils.h                         |   2 +
 15 files changed, 547 insertions(+), 31 deletions(-)


base-commit: acba8bf9753134d9bde89f94369f775838a8c5fe
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2511%2Fkairosci%2Fds%2Frebase-whitespace-fix-merge-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2511/kairosci/ds/rebase-whitespace-fix-merge-v1
Pull-Request: https://github.com/git/git/pull/2511
-- 
gitgitgadget
Technical Details
Message-ID: <pull.2511.git.git.1795996885.gitgitgadget@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76649-linux-kernel-git=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76649-linux-kernel-git=dewy.ru
From: gitgitgadget@gmail.com ("Alessio Attilio via GitGitGadget")
Newsgroups: linux.kernel.git
Subject: [PATCH 0/4] rebase: support --whitespace=fix with --interactive
Date: Mon, 30 Nov 2026 00:01:21 +0000
Organization: Usenet Network
Message-ID: <pull.2511.git.git.1795996885.gitgitgadget@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1289302"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8PBrkrHZW09KXyQZw/1+Fo+w4S8= sha256:YQHAHMoKfkjnxJ/TJfegYZI0r8JScNBgqJ308ibvOxc=
	sha1:IsnAXNp6eEIeD8yTXi5k6gC1iLI= sha256:n713Hav9zll935NAGuKPmjcP8h7GIRDLs6CEdKEIL1A=
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 CEC5C125FB6; Mon, 30 Nov 2026 03:01:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.509
X-Spam-Status: No, score=0.509 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, RCVD_IN_SBL_CSS=3.558,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no 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 1b5kw4JKB6IZ;
	Mon, 30 Nov 2026 03:01:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76649-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3C7BD125F08; Mon, 30 Nov 2026 03:01:32 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id AA05E25874; Mon, 30 Nov 2026 00:01:30 +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=1795996890;
	b=5koMBFwbNkr6NaA7bZA5J4TJXNUR+NYBiZeuYqVqRHNy0+CvFQruCV7l/qsRY7+CcSUL
	 eiVpT0ND/UmmD4gwAdxFm/thKOw44pHzoTZVQeJrDUCYDj0V8Byt1Izh7WIiUdi1m4jqu
	 PCx43aznjq0HMuKY9HyUg1m0H5zTSn0BbbCsQKicw6jfwT8/YJ5RwIWcLIMBoFzmTje6a
	 gw29TlHvsBBGVXe8vi8UbJTT2QleuMGICY9m5Rm8kgx8sR3zs+6UUrNj29uStqqBan4kp
	 hrzbvLvoOHmb72Q+1exwxtpJzCQhVVVgf+6MSQZYazfxRF3n83HhdQPa3YNd209vQAA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795996890;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Message-Id:From:Date:Subject:Fcc:Content-Type:
	 Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:To:
	 Cc;
	bh=bsm8zbiQKqGx52XoKQtRIKCA9Yskrh9JuGlHW4+aWV4=;
	b=5iM9oxskxrIbzv5av7s4C118rwasZefASHRPtFv6fvP6FoHNVmDH2nmA9Qo3LB4qEpeK
	 SzVvi0Wutx+wcvtJ4d+oSFnebVuTjs+Pnb/peEfM8K/ySoZTfXKruFGGpHPyorGuzmpp+
	 vzjiLWj/Wk2CNlGPpJZNaYXgsxCOScPd+Ywu9+AgRTGw6Uj1gCUfJoHFebxoI39RPQeKO
	 I0T1/N+ykT4gwVggZm0j0AsM3zXGKLdfD9LSVBlSgTODccyIas3di/jkFSkC3wBzRVTuW
	 YnX0c2iN81Kcp2CV4iWVSZwH4BSd6qH0GsZ3F0jIEVCn+jr7frXjrkdxPZouFJSmM0g==
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=GVvTURo0;
	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 818AE606A32D;
	Mon, 30 Nov 2026 00:01:30 +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=GVvTURo0
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.177
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795996889;
	b=IVYiUXzuAGWYiJNRtjl5nZn2p/WzHk8NbkHBud7shkiFqP/ySrO2vJX7lU/63sCmg8/v
	 rKii+q/6YD4zyQeZhLDwi2S5oKcb4vQqFpPJrCuL/yVVorYPVTjzKkPUUKJMqzdB/aw0O
	 bk37wUui6MCacxyrmTz90ioZdieHS7QJSAGTR6pH0qRc5jffmWtdFWgWxdOSMxLXMLcS5
	 o+7B5aYOVuCTM7vgJLDZmOySgSZk+N7F1rKX12+FZWybz3GvlOSRQvjrIerUeezwkuYy5
	 urVqp0mL3MRx9b1VQHKoCijcLsJVimaS77nyLK8A764u9h4nIAl4Gx3RW6evN16Mv8Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795996889;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-Id:From:Date:
	 Subject:Fcc:Content-Type:Content-Transfer-Encoding:MIME-Version:To:
	 Cc;
	bh=bsm8zbiQKqGx52XoKQtRIKCA9Yskrh9JuGlHW4+aWV4=;
	b=23Nt/Bd6tuhUufaUuYqOf+sNp4zr48wxlFW+AZEfuZZe8USoQ48JUuijPvu4iELjtGds
	 lMNAg3jEYfwNf8SlVZxuBG/idGmjU9vdiRxfdlRS5tPgvkNC6ABaoqpI32Qbw8BNss+B+
	 siZlNHOOTkBMxGJ6zpR6r/tT1sdkOv9hSCzb50ThdDvCjFGL5cmazh51XqPe4mKXlMH5A
	 G+enpLT8Lbe/WvYmQy1/7two4pdijzP8AF03wOgeFqIVWIQekgkHc3bss/ytR8fKSaZJ4
	 5mT+BQQ5IhfivmU1GFFYK9N6FmCVzrednH7Jdz2T0oDVANWgeaaEMWqtoc0PxSMvJWQ==
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=GVvTURo0;
	arc=none smtp.remote-ip=209.85.160.177
X-Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177])
	(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 49CCE606A31C
	for <git@vger.kernel.org>; Mon, 30 Nov 2026 00:01:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 49CCE606A31C
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-qt1-f177.google.com with SMTP id d75a77b69052e-5363316fa0cso104233621cf.3
        for <git@vger.kernel.org>; Sun, 29 Nov 2026 16:01:29 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795996888; x=1796601688; darn=vger.kernel.org;
        h=cc:to:mime-version:content-transfer-encoding:content-type:fcc
         :subject:date:from:message-id:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=bsm8zbiQKqGx52XoKQtRIKCA9Yskrh9JuGlHW4+aWV4=;
        b=GVvTURo0YHbzzA6oolN+M50VNmojXYfdjEOm+w1ZPAjTfZbIhhAJ9n42ZAPxBkw8kk
         Z0xwPDyeczXuTGKZfSlCmSwsHXVAwhlY4GNPsQ5e4HYz+9kSY6QesAftrm9tukpoAFyz
         7z9SWFp1a2u92ZVF6d1YFGjZWI9Lc2sUy52WQI6PqGlWVBqRxFds0XB1TKAQfLoQ2Y76
         e+/Wrjl/fb7+kkG/Img9c+l2JpBLqs26Im3+3Vn3hflaDYd7RSODqjZUSzZ0LMR8NVzi
         f9LECZnoj7/lARJCgL3axKO5txxf3vpN3WBQ3Ziy9H0kOYCw1IRjsOgpJ7zl0sbwAa/m
         yQpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795996888; x=1796601688;
        h=cc:to:mime-version:content-transfer-encoding:content-type:fcc
         :subject:date:from:message-id:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=bsm8zbiQKqGx52XoKQtRIKCA9Yskrh9JuGlHW4+aWV4=;
        b=c1xlu20Etnbawe09ynQwiUQd1sL9JIi/Yx4lLIEscRRA48NecRB5uYTJY6V0KciEnC
         4fAayAuNyKYnKL7ZJvNH9O/LyAQCA7VYcyYUCXekJAftJF14PRszmYQ9iqPRDNgWIQts
         3Rite35RtxZivegfxGEGJvzHpupDImOKvrJjjpEEJWKTexC1+uDQvAErE0ew9Cl+lnT0
         7DloSfiNLCYj+jUbXo7ojfzGwSBUQDQK3GW4TmEKL5CI1iHsEXB0FjG+GtptWkclD9Un
         TBh9LBTtyUNbqaMCxN5UB/IpFt14+Z4gwacwYEaCcF1jLXACI0WiTRbco2Z7rjiS1xVc
         NQWg==
X-Gm-Message-State: APuU4Z/F494p2zWa3cEg+z3B5vY4RKAWHLEfmrD7hA+pX9b2skBE5OS6
	LzjzR58b5FtYuN1AFbGbfDdqxZzdd517qyZT3VR6ZNHO41IZY8mdShXr07LcUdUM
X-Gm-Gg: AZFdTZeR6KUbUwHIV6lkdU8ejT5qciPQVmIw0iEwEpiG4L5DbB1nUWWTYhi+mNWVC2F
	Tzktj0vm5bQ4FUeLYsNrjwf4kyp+PkqEZZsYjZXOikXSgkM7/zPkEJEyypZ4aLQFrbNTh4eW0Tw
	L3PlOOEYTBrq18pYJdIfLKBsnd4Bqk948F/NCHJfTjGWmzvjVFAkuEuAUbUbSF3EqQ6ZzDG9SSn
	4PCNZ6B88yam4H49rA6S1ZzAZoH86Uuz/kJvp54Qur0fe2neO/V7LCDlJFkTJ4Ci44X5nAVlp2S
	Z8bxYGSTLhhHWSdOiQJ8j+dxvcCmnq/dsiNW+VLR0zksQSTQhroHwr42HbJfB0axkrJAT2P/ie+
	6HvOtq4xZr5kaTAFkFYTIzUaPXzh6K+u0dSL2dHOdKFvPcWvOXNnJXFSBjS6Otwfut/EPqo6k9s
	LS1CBhrlsOQVpXsJ9qo2++Mf8hMl3lVyH2s8r70mbFVxMXtrKFg9FNjDFPWY6TVmGknSwVHvbDx
	AYd9qcYjdmwp8tcEez2xvLtBWYmCxFGdksdiM4tNNgWt7H6RyOXqRJu3WM3izCQzH+A75uBYt4y
	Gel7qPpuEHtaA7ZM+bQ2WNFiSa4yOA8=
X-Received: by 2002:a05:622a:258a:b0:55c:7f3d:260f with SMTP id d75a77b69052e-55d76a882demr571911811cf.63.1795996888166;
        Sun, 29 Nov 2026 16:01:28 -0800 (PST)
X-Received: from [127.0.0.1] ([20.64.247.97])
        by smtp.gmail.com with ESMTPSA id d75a77b69052e-55dbcddc13csm122566851cf.19.2026.11.29.16.01.26
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 29 Nov 2026 16:01:27 -0800 (PST)
X-Fcc: Sent
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: Johannes Schindelin <johannes.schindelin@gmx.de>,
    Alessio Attilio <attilio.alessio@protonmail.com>