Article View: linux.kernel.git
Article #3548Re: [PATCH v2 2/2] builtin/reflog: expire each reflog only once
From: Laveesh Bansal
Date: Sat, 21 Nov 2026 19:54
Date: Sat, 21 Nov 2026 19:54
22 lines
10069 bytes
10069 bytes
Patrick Steinhardt <ps@pks.im> writes: > Isn't this note here important information to point out in the commit > message? It sounds like a bug to me that we behave differently > depending on how many times a refname is passed. Yes. v3 moves it into the commit message. > Hmm. This here retain the current ordering. But is there a reason why > we have to maintain it? The order can matter. With --updateref, expiring a branch can move it, and "HEAD" is checked against every ref tip, so expiring "HEAD" before or after that branch can give different results. Sorting would change the order, so v3 keeps it and uses a strset, which is one lookup per name. > Arguably, if the above is a bug, we should also have a test for it > here. v3 adds one for --updateref.
Technical Details
Message-ID:
<20261121195400.20517-1-laveeshb@laveeshbansal.com>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76042-linux-kernel-git=dewy.ruReferences:
<avRiv5WpCZQCbRnZ@pks.im>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76042-linux-kernel-git=dewy.ru From: laveeshb@laveeshbansal.com (Laveesh Bansal) Newsgroups: linux.kernel.git Subject: Re: [PATCH v2 2/2] builtin/reflog: expire each reflog only once Date: Sat, 21 Nov 2026 11:54:00 -0800 Organization: Usenet Network Message-ID: <20261121195400.20517-1-laveeshb@laveeshbansal.com> References: <avRiv5WpCZQCbRnZ@pks.im> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3480910"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wRwHO0gh/ul9NDs60r+CkQzwzeA= sha256:2DK9QLeJE+LPHR5+JnSxP5WwEIMKkCQ1yHb8AwaYCkI= sha1:7VnzZSEZAG5Qs/b8aZbwBAKsQh4= sha256:Pv5Tj6/aleQ7VmP11SPN99VFuHNNinUZO1ch1/ZA7vo= 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 5B1E2115BD9; Sat, 21 Nov 2026 22:54:30 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=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] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" 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 iO7_QxIiLjtX; Sat, 21 Nov 2026 22:54:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76042-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 53313115BA8; Sat, 21 Nov 2026 22:54:19 +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 AF13039CFA; Sat, 21 Nov 2026 19:54:17 +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=1795290857; b=D75lCGkxYBIRa06dWzINiG0m9Z35lD5KH2vijftJSknJEUzuVe7dK8kYsvrVXLFdPBpB XzFSYrgZfmrcgzmRsffmxvfOpR+zflaVASntNUw3MdRsOgkeRS8aEN0TXqY0zU+YjG6th +zmdfuJ8LYSJti8ydr2nHc4GjPsOlrgpc+Z+HJ0+hXJxJ3Oy9KeBw8jcl6bMXmYOGbptb ownfHjP3u3k2xrkjSMm3b0M6v5yQwhyPQBCLW47KYO0+HYS+D5Q93DchQZuGto60a9N09 g+Hn/LwDBkPlR2pKd258RF+69HH8/UPC1LFgd8jcwjn9tBhl8oL2QOeGPK+ci+xtD9g== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795290857; 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=Vb9bBYKz2LW556RY+lE6tMUM9UaGaXQyp8uYL5yLEag=; b=oV/u2SfQfSiDVqces/dTGrm1jGK7m6JemPry3J4O+sTrBrGN78uerphH6wYhQCJTMzZD pQL48Zm1jkPRD2/p3cWI5JJR0N6uqVyucVKYITCVHeUwf8uZTnPHEznJ8F7EOr5W24RA5 d9IjM/0f3ZHlCriE6iSKvs90LC73wRAaQzpJ4e/eK5lqadNLa42JS/DoQzP9gTih0gj7j 7ItbzoCW+5mW/u1qkvc2CM+Mu72BhAVxgbr7yWAPyvFI1H8cj4KaB+Dodb+aRVOTq+xjE fvr9cSCZBov7ryGQUeWb1sZwqayMy1BnA/zSzofe1DcWCP8lhhXMp6/uQYvmH6kqC7A== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=N7dTSSyy; 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 5A672606A333; Sat, 21 Nov 2026 19:54:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=N7dTSSyy X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795290856; b=YKAMFYEkhSkMxEC+f1VXvp224P6NFf7sGUVjY+Xz37U2p8Txv9Sh0Pv+spkQsjHTT+aT eXaYl5cMjhw9LSAl0XpM6PeBXOZQoJ5198Gdv4LMmWjIaYO32WdF1eRB2U8BU7Y45s9gu 3yxumagO34sXjjNNqlzhttdIDyWJwDcrpyPaP6sVfTEGruhX839ESdR2ClzYrtgGb9rBq zYknONJW2Kc4aL2KoM3tn4MM63o03yHccm/Vu/gzfK6JRHXfiVgNxSCKnHsKtlI0iOSkL b5ryu6WzVY5YP+drMjJCLRmcYMY++bGSpbd6fFIufNuaWC+mFtqRxM/3sQm3/cJ+wRw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795290856; 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=Vb9bBYKz2LW556RY+lE6tMUM9UaGaXQyp8uYL5yLEag=; b=4JAt9y5MHSvLGJj79SIPGEFo3se2aSEHOwoH/lIajOsT/f7LQWmX5MHTJc1v3yOvFWPb tyD/D/fyk4GCZhLTGp+VKjA5Km6x6U3wlDtPaBtZ1U3z651NA/ts/UKyPz8MQhzdfbUAj P5yauzbh0B/CC+YPrXqVGceSHrCfYltp63keG3CtVZh/yD5uvSQ9ETYgAswdi9R9Fh6q5 nGReoOVRAKzTwFKhIrS1PGOF5MQen/Qr2hGWnkHmktdNZgix+nqWh/V01lcl2T0xlRKT9 6FFmJ90O23cABVo0AUwdQ2l0IytVwVjU+0WVn4X83JbFVeVAPGzpertp2OuYhDoHItQ== 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=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=N7dTSSyy; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15 X-Received: from sender5-op-o15.zoho.com (sender5-op-o15.zoho.com [165.173.182.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D8B2606A320 for <git@vger.kernel.org>; Sat, 21 Nov 2026 19:54:15 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D8B2606A320 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=1795290847; cv=none; d=zohomail.com; s=zohoarc; b=GlzD7EUHRTtLv50juVE6d43vuze62Hra/hLhAVg7tuNE8pr+QwhPZtYC1JgxHVRaErORVA2BFB7I1jJZeLTxKIgYsRt6y1ZMwk0L2D83rCHX/hU7w//FIqecfG/uBeVk3IwKD3C10wudHN/VJWACz9VccJsbr4SF8aSlWGfaJ90= X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795290847; 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=Vb9bBYKz2LW556RY+lE6tMUM9UaGaXQyp8uYL5yLEag=; b=FNcWzW4WYZ5a3EVZI1GyRjb+RBYWb5FQ0DPDfebgCrsJftvJwX/woS9Bnp+DDiwXKKvE9Q5T3aCwDz/OHk5kvNrGPU9TakI4ek+tVgYzDRt90EybiIpyb4BdxBOpxTRPxnPvq9LBThZ1M2fX3n5DHdtjEI8yzwUhFhGPfihBTS4= 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: a=rsa-sha256; b=N7dTSSyyQnMAaLF4fNVWxwggBcfPz4F5VYYNVdIi+vzyuJFHjzdXlEKpmTs9blYaPx7Vw0s5imku1EIoVGUhPpObJKc0DHswgLJCYJAvu02tKCxxuMknnoHCjb1MHx7r9KxBPwT5t2kstWqBlgnEhq+wxcENGDjncGJrC4M1LS8=; c=relaxed/relaxed; s=zoho; d=laveeshbansal.com; v=1; bh=Vb9bBYKz2LW556RY+lE6tMUM9UaGaXQyp8uYL5yLEag=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; X-Received: by smtp.zohomail.com with SMTPS id 1795290844298592.6070657387306; Sat, 21 Nov 2026 11:54:04 -0800 (PST) X-Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>, Karthik Nayak <karthik.188@gmail.com>, Ævar Arnfjörð Bjarmason <avarab@gmail.com> X-Mailer: git-send-email 2.54.0 X-In-Reply-To: <avRiv5WpCZQCbRnZ@pks.im> 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