Article View: linux.kernel.git
Article #1440Re: [PATCH] builtin/reflog: say "would prune" for named refs with --dry-run
From: Laveesh Bansal
Date: Sun, 25 Oct 2026 19:15
Date: Sun, 25 Oct 2026 19:15
12 lines
9584 bytes
9584 bytes
Junio C Hamano <gitster@pobox.com> writes: > That will help prevent a similar bug from ever happening again, as > there would be only a single place that sets up how the expiration > is called, instead of two we currently have. Agreed, and I think the consolidation is doable. I suggest keeping this patch as it is, since it fixes the reported bug. I'll look into what you describe as a separate patch after this one, and the tests added here would stay useful for that patch too.
Technical Details
Message-ID:
<20261025191559.79141-1-laveeshb@laveeshbansal.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-73211-linux-kernel-git=dewy.ruReferences:
<xmqqqzhdy7pi.fsf@gitster.g>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-73211-linux-kernel-git=dewy.ru From: laveeshb@laveeshbansal.com (Laveesh Bansal) Newsgroups: linux.kernel.git Subject: Re: [PATCH] builtin/reflog: say "would prune" for named refs with --dry-run Date: Sun, 25 Oct 2026 12:15:59 -0700 Organization: Usenet Network Message-ID: <20261025191559.79141-1-laveeshb@laveeshbansal.com> References: <xmqqqzhdy7pi.fsf@gitster.g> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1108001"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:z3TMr6vTG27B0OMtA2EomDuatu8= sha256:ah+u9tRJgeLAV2yWX6DlfVxeJbkGyqV86a1YoxGGVzI= sha1:PoOpcoMBlWPCirVWrVn5h+ODuC4= sha256:Pmx4SVM6b+quTOHuad6aiETio1UNtE3ahuwn6ICNBlA= 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 CD915125B44; Sun, 25 Oct 2026 22:17:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.95 X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, 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 (1024-bit key) header.d=laveeshbansal.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 uHHRuO9YsMMY; Sun, 25 Oct 2026 22:17: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-73211-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=laveeshbansal.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 09238125B43; Sun, 25 Oct 2026 22:17:29 +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 81134394A5; Sun, 25 Oct 2026 19:16:36 +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=1792955796; b=U7HUl58n0L/NqVix9gnaioeFivS9sr7miDUzF/s0KvksN0xPZnWtSNSHaRxK1MRZbOs/ kbOLsnMz1iQ8uqcydLJVY/JsD8ownCMnhIe4f2BKRYkCQdch83OxZGxOjLh03zVAWKCM7 m2Wbwly7x0YS4HKCsu0vajpQ3ASd2SViA7lOXiO2pfqSE1KlYYT2d/VkW7tpzNaXTFa39 +IBPbh5o9uuDIEmAus8nAJUC+tPEFsMfxgXkEdZGq7lI07MvmUAmoiOak4hp2qQKydx9o 38+C4WPr8nYGtDdVgQYuskdeWrQas4SskBrVoMpVmrdHcLB3KTF3Y8Ct3/4AEPAqm+Q== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792955796; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-ZohoMailClient; bh=4VnXdYh+sPsWCrQpfYhjRksm/v/shJoI5g6ecB/8z8w=; b=YJZJb63Dh4WaECX70ZYlo4KdqRHKKT4tDYEjbtG6imEsDZGE+iB+Y9dktgMWmwyKrd7M LeMf0fTDYFHTic6fAOsnG6xslDHszq8NOI1OJMj6SmrS9JvI6AFEiSgGUnY3kAdO4s9ev ut2WYP4/WxmIVuDObSclrELTxIJoSM6GfV86SxyP81h1gi01igEymQaKrSurB94R9838R AlmveuqGe+oODyBg1KajTku7pinSaKc/4bIGvWyRhUFK/rgB/kiRkR/41kcofAMi48uux uEcDuV/vbvLprZnfDbU4N/HJiNSovvzWMcW30Z+Wx21s2rYFleGYNGahxVI0GPMJ3kg== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=laveeshbansal.com header.i=laveeshb@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=fO69EcPE; dmarc=none header.from=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshbansal.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 5832F606A321; Sun, 25 Oct 2026 19:16:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=laveeshbansal.com header.i=laveeshb@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=fO69EcPE X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.15 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792955791; b=RbdVcQNO6K/BMQ9CFMwOQACBwAVj8oev4MZX+rMZ8oIB0QhbHQVxv1giN+XjvDXL26x6 Y68rQyGWkXSvbO9r+96c4E/M/elY0y4ptXDQQCJs6y5s4Ikfs7E6ysX4Q3WvwqtVdp1aC r0uz5cQfcyYisPIUy5270qWhSd+YjxdOhY4BSA6HUPFWm9IHFrWiT4jrKNpRl/tLdhxAE ByDrp5CjSA/aFyUxb4MsOAgpIIFEyMdu1kqZGOz98uWQADq7FPhYhfY2yNO45xprZ1+gP xEHRLfWU5sNArFz8l+ueSLZv/ceCg0Ja4yhIj1oQHjqFmtWMCW/GWlhaj93XEaxSuDQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792955791; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-ZohoMailClient; bh=4VnXdYh+sPsWCrQpfYhjRksm/v/shJoI5g6ecB/8z8w=; b=kI3oSNPDmJmoqPurbKP+wNFxEn2xeV1WW/55GAyPORGIYuG3P+6JvDLcKr5YOgT/dJ6c FlmmLC5JfSQtvXuxLsJRJDRhajiPKNhrjgQVr7riLr7v+2fXCOqXo813v2JKTEYVKO6Tl Isjte0x2p+cYidR0BOvdL5kBKGiqumvrwHZfpuGW6YDo2xlXcicgpbvkjjWLhHMZMJ07E GtQkcmh6SnikvK1B+o89GK3Jc0g/iUN2VxzNBvlFih4bRL+1fqW0YlIyscctEXs6uYgDP N5LrGgAi9VGFaaQr8wW0RBawJm4QdP5YNFlONQ/donB/wmI2hcB0GQ5uk5Q4tTmCFOg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshbansal.com; dkim=pass header.d=laveeshbansal.com header.i=laveeshb@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=fO69EcPE; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.15 X-Received: from sender6-op-o15.zoho.com (sender6-op-o15.zoho.com [165.173.180.15]) (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 2E75A606A320 for <git@vger.kernel.org>; Sun, 25 Oct 2026 19:16:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2E75A606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=laveeshbansal.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=laveeshbansal.com X-ARC-Seal: i=1; a=rsa-sha256; t=1792955773; cv=none; d=zohomail.com; s=zohoarc; b=kxxcF5e715F8L/umu0n3037bb5DaRUamWOcYQiWOdfUTl0jjQqPUQ5wSvSWqcwVYN/njL51amq5nmfof+aD3jDNHIoWuKcGuUCtyo8D2gYueWF1K9rlqg0gXxGDnvPhLZdWOcXB2K7KvmJ3tCf4SO0F3yLCjdnqGmeAX4k63vKA= X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792955773; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=4VnXdYh+sPsWCrQpfYhjRksm/v/shJoI5g6ecB/8z8w=; b=k82uMYzkukwR39Vlw8VvlYd9OU+POHiyGzmBGEpEuXLCOU1p94o482M3UbdMFwBuOV4UzlZj+eCKNYWutGRE6Kmc1eGZhDLWz1xPsqhNQTtKDr9wxah1+zD04CrLvFnqvCJvdO8QJx6Gb9wZm4L5pg1KkgJbRHFuDaLBo9n8zPI= X-ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=laveeshbansal.com; spf=pass smtp.mailfrom=laveeshb@laveeshbansal.com; dmarc=pass header.from=<laveeshb@laveeshbansal.com> X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1792955773; s=zoho; d=laveeshbansal.com; i=laveeshb@laveeshbansal.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=4VnXdYh+sPsWCrQpfYhjRksm/v/shJoI5g6ecB/8z8w=; b=fO69EcPEDGwUJ3KhRilQuTs9ddv0Fj4PhMioouUh5kV2uTRJKDtYyEN5ABaf/yyi 93SJUllqG5iOkOo30TWrFVEh9Cz72zAo1fycXMki6HXbmMDDW/0b/2T7s4EugDc21bt Zuki22aBdpR1U8wPpSmXqB0WUdqQSvLAS/tgURK8= X-Received: by smtp.zohomail.com with SMTPS id 1792955772003397.88395139995464; Sun, 25 Oct 2026 12:16:12 -0700 (PDT) X-Cc: git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>, Karthik Nayak <karthik.188@gmail.com>, Sven Weiland <sven.weiland@tngtech.com> X-Mailer: git-send-email 2.54.0 X-In-Reply-To: <xmqqqzhdy7pi.fsf@gitster.g> 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-ZohoMailClient: External