Article View: linux.kernel.git
Article #3521[PATCH 0/2] combine-diff: fix patches for more than 32 parents
From: Aniket Gupta
Date: Sat, 21 Nov 2026 10:42
Date: Sat, 21 Nov 2026 10:42
31 lines
11700 bytes
11700 bytes
This series fixes a bug that Sami Jawhar reported [1]: the combined diff of a merge with more than 32 parents puts lines in the wrong columns, and with 64 parents it shows no hunks at all. Patch 1 is the actual fix. The shift that sets the bit of a parent in the mask of a lost line was an int shift, so the 33rd parent and later got the bit of another parent. Patch 2 is for merges that are still too big for the masks which is more than 62 parents where long has 64 bits. Instead of printing wrong output, it now prints an error and skips the patch. I made it carry on and not die. Now "git log --cc" will not stop halfway on a big octopus merge. I am happy to change this if people prefer. On Windows, long has 32 bits, so the limit is 30 and the tests for more parents are skipped. This is based on maint since the bug is old. The test suite passes and CI on my fork is fine on Windows, macOS and Linux. [1] https://lore.kernel.org/git/CAOJ8FdczW9KxFknceHodV0jmhyEB24OMtqQUmhkP3E2vfsmgag@mail.gmail.com/ Aniket Gupta (2): combine-diff: fix the shift for the 33rd parent and later combine-diff: do not show a patch for too many parents combine-diff.c | 18 ++++++++++-- t/t4038-diff-combined.sh | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 2 deletions(-) -- 2.54.0 (Apple Git-157)
Technical Details
Message-ID:
<20261121104234.98386-1-aniketgupta3001@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-76012-linux-kernel-git=dewy.ruShow 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-76012-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: [PATCH 0/2] combine-diff: fix patches for more than 32 parents
Date: Sat, 21 Nov 2026 16:12:32 +0530
Organization: Usenet Network
Message-ID: <20261121104234.98386-1-aniketgupta3001@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3393153"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:teJujqPOdWKPS2WK9Ccax6GLj6U= sha256:DOX3g5ofFvZeOBPhouZcFfrVC+Tu0eS7DqSN5MSrIiQ=
sha1:qB++TXcc+9DK3triSPh81w8dl0Q= sha256:F7AVKqNJJs7x6fZ/bqTBbbDqqh685oE8H+y0HQPfYqc=
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 73B34115B53; Sat, 21 Nov 2026 13:42:59 +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 CeJejqWFBuDJ;
Sat, 21 Nov 2026 13:42:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-76012-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id E22E9115B4F; Sat, 21 Nov 2026 13:42:45 +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 32A1935B3A; Sat, 21 Nov 2026 10:42:44 +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=1795257762;
b=vZ5xkOZP/aPOrPJBKY5hzYuUMTr7GBzbeYrgShHTWoyW8y3KhmzXolXR4MIvf++vBH3S
mw0cRJ3bzaMd9Iv24DjAyztLG2Q1VJ2XwwVBzNvgMO4Iy4IKEqhD74/gpKU/02wquKeds
0+/jLrOTQCBHRJKa5WvzNaRHOEK639R6TVcgHIvxbcCq9LlmqhQjaR/htkdRqwZlKUA5x
jZaIerGsKs2Lq6Jr0Ow0Xvbmnnieq2k4hekwFfsCOVIU9nAIxd1FtBoEi+f9e0zdcZNnk
6cJkRiA5oxUUZenlpBWackqq+DFHfphydNJoDhFpiAPO2DPv8G0smmdALVIV0vTWOqQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795257762;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
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=vHFn9f8KEoWGXZRuf9xkNce44zdVi+EHJ5ELRe1T6xM=;
b=3t4qV8EyjB8e+h6OfdChs8peEZmbMLWUmRRN6jqKmyZm79e78ydfRd0wKq/XpBTOwyP5
zGoq4Cr37AvNzUCSyN4pX99Dr5BT0sBzURculG3LcuKLpyk381ZqUIxNrEl35bPiNvamk
3eyMWH35m1Yvy8suEjqOEodlu1eOfodLSG+b15piLLg9najJs6lC1qy20Hq0NfGbKvXxk
9N+B2fNKmMlrLEBSK8P+a7tOaW0SWRqH0W2a0yNGA6jiK6AyL8wd6glNO5HwyNnMQcRW8
NydHi1WyuVnf6qUevSGxBzD3h1lNCqdKgaS4WmFIYCBNdqYYRT7efO2rxYfE+Iy8z8g==
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=cn2KrmnG;
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 22900606A332;
Sat, 21 Nov 2026 10:42:42 +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=cn2KrmnG
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795257761;
b=DpOtnfP737JBo985/1jR/3exsaS7Da+MMlwjiEoEtPMwoNdS9q3i8pYWlxlYyXa2y09u
2FLd5eDe1fkiHVGxmP8AWjDIHVopuhxTEzylxtV3PfSH/tkhXv7D2arJOi6sSm5oLOOc4
Aey/ADP73BnId5brg/iyhS0RZoFqYu+ImWxhgp8qMudTsrucKL+Woasvnvoa6TkVW7Eac
xtOCxTR2EwkV7jhbs8Deu86FuzA3p/kdy8hl+01yHbD3F6ua9Ig1+u+Fj8cG967RB1yzR
hcRJ8qgN+nxxjCJL3PpMkPHmq7FWnd0iAuna9YTqQOEgKr5cHJUdeadg9B8jyuO9VAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795257761;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=vHFn9f8KEoWGXZRuf9xkNce44zdVi+EHJ5ELRe1T6xM=;
b=YzItyVxxh5W6oiRb1CQW+TP6KLSFIQUbZA9aS+HnE/UHA6N0lX3vvVDednXbCTolTPt/
0VYZ4He0IX9OVeTIx8qld49yiARMb/qrJRWkeu4CflkExJPYeBNCdrzsXpKcHXT253h9B
e9E7EtHAQ0RPuflUHACt5BkFt/Axu44+P6C6SBSmtRiYfVw8s59EUDbRoHsIriXC+Otea
MiVW/4XaUHC0f33Qtz2tuXIwKdhkaihE8ak0l3FFm3S6M8MOcm56o1bSCUu4i+4HqZwJ/
WsljC0XwFShI7KdF1tttenbpNSE0hQInbkUj73I+lU4MhUYGrtTlwA7DdT0ces/SCuQ==
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=cn2KrmnG;
arc=none smtp.remote-ip=74.125.82.52
X-Received: from mail-dl1-f52.google.com (mail-dl1-f52.google.com [74.125.82.52])
(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 DC434606A320
for <git@vger.kernel.org>; Sat, 21 Nov 2026 10:42:40 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC434606A320
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-dl1-f52.google.com with SMTP id a92af1059eb24-1b50a4bd2f3so2818654c88.1
for <git@vger.kernel.org>; Sat, 21 Nov 2026 02:42:40 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795257760; x=1795862560; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=vHFn9f8KEoWGXZRuf9xkNce44zdVi+EHJ5ELRe1T6xM=;
b=cn2KrmnGT/TdoQzQXSg2wev2dgIT3cz5VNKUHS8khX3gVsjGdy5mCy954SeZq5VXgh
ZB7bFn5pNI6wJinVz70fm/zW8pOA5NZr8zVJrNtWiNgHnA8W26FAUmu2tzJ7c/7NznX4
eoZHpHdAS2/4cocK5DDfeDU1Hloh6gJq5VtnvjFOF6cI8GzTlcSyTe3rlnKIwzQyzZoF
YxkpWTaj+zi60XBX5A3Vn04P1Og0ZyI7BQ7/u3ni+OfZXnkNkDXDe6dskqYPtGEh+EaJ
F/ugqLSoib9UA/gNNfy3a3FArdqoAmlaYJ18Fj4u6uNsQCJ75bhRKJDU06v+uFuGvN1u
Wl0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795257760; x=1795862560;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=vHFn9f8KEoWGXZRuf9xkNce44zdVi+EHJ5ELRe1T6xM=;
b=2pZJ/8rKcv7rlE0BfTeQyY+dLIhl7aCyftV6WSvSZmTk1/lHrlC7opCe1w7B4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oMgylJ1462UPY3Su8Q55ZB
fD7CR9wIDsPzgcEzvKYyZ
X-Received: by 2002:a05:701b:204e:20b0:1b5:2717:61df with SMTP id a92af1059eb24-1b556913aadmr6160509c88.41.1795257759626;
Sat, 21 Nov 2026 02:42:39 -0800 (PST)
X-Received: from localhost.localdomain ([223.190.83.65])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5568592adsm13290463c88.15.2026.11.21.02.42.37
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Sat, 21 Nov 2026 02:42:39 -0800 (PST)
X-Cc: Junio C Hamano <gitster@pobox.com>,
Sami Jawhar <sami@theorem.dev>,
Patrick Steinhardt <ps@pks.im>
X-Mailer: git-send-email 2.54.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