From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5495718FDD2 for ; Fri, 4 Jul 2025 14:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.18.0.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751640778; cv=none; b=YildTDZAx3g68zgUPEiSrUE7AWw+TDsMcAxIru+5NJeI8Tj+C0Drjxv+2Wjn/cOGeLoadKRIipng/+aErm2avw0ImMgT47eTARp4I/FRzo2Ww87jS39XQ1tpnPk2Aa61ITFjgPF54wEv6Wz8onfmgMDPfXV8dIzG1bDZLz286GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751640778; c=relaxed/simple; bh=PhaYbLUFAjo+MbMj3jjDrWXCt38FBchNQoDRHed2WsA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cRBejeZylhmlCftVyy1y7eRK3okwVoo1FtpkLPW8IBbqpxIJRJF76YM2fsbbKg/Qib5t5PCDvQ2+i3Blfc0GiVWCS04dsuJSWY+2WnFscgNUvtOeKjPNOigSW9yYUD/NFB+CcJbAuw+MjVa5EAPN56iEcZsl9Fsq0QY30AhRYSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=nefkom.net; arc=none smtp.client-ip=212.18.0.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4bYc7Q5dVzz1r5T4; Fri, 4 Jul 2025 16:52:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4bYc7Q5FSRz1qqlS; Fri, 4 Jul 2025 16:52:50 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id zOxWMK5TfvtC; Fri, 4 Jul 2025 16:52:41 +0200 (CEST) X-Auth-Info: LGNrPpUVno5nF0atodSls0+VpiMhkCLMaczTSxgJwKV018ss630R3PR/sn6Wlwr9 Received: from igel.home (aftr-82-135-83-93.dynamic.mnet-online.de [82.135.83.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 4 Jul 2025 16:52:41 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id DB9582C1969; Fri, 4 Jul 2025 16:52:40 +0200 (CEST) From: Andreas Schwab To: Karthik Nayak Cc: git@vger.kernel.org, gitster@pobox.com, ps@pks.im Subject: Re: [PATCH v2 0/4] for-each-ref: introduce seeking functionality via '--skip-until' In-Reply-To: (Karthik Nayak's message of "Fri, 4 Jul 2025 09:02:17 -0500") References: <20250701-306-git-for-each-ref-pagination-v1-0-4f0ae7c0688f@gmail.com> <20250704-306-git-for-each-ref-pagination-v2-0-bcde14acdd81@gmail.com> <87ms9kcbtq.fsf@igel.home> Date: Fri, 04 Jul 2025 16:52:40 +0200 Message-ID: <87ikk8c8jr.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Jul 04 2025, Karthik Nayak wrote: > Consider the example > > $ git for-each-ref > refs/heads/bar > refs/heads/foo > refs/heads/main > > $ git for-each-ref --seek=refs/heads/cat > refs/heads/foo > refs/heads/main > > You can see that the reference doesn't have to exist. That is even more confusing. What is the first matching ref if none of them match? Doesn't that mean skipping _all_ refs? -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."