Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.146 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796127417; b=C1Y6/9/WNY6q3WAFf7nlKw+V8i9ORoljlzzSdz+DQzXvjiQnv5x/IYvcZTXI32zRkMlq mtwZ8JGk3Qv3Cw4a3ga8v2vk+l56dvYbpyxLZuVRcyepiAg8XZvd1ss4ZsJ1DwkQVgGpc /YgGAe6Q/l+Cxc6LvpIdPOkFjD8g+C3yLcDi7ULox02/qfU08kFQRJ60IAns/sUcP8sGy NzQ6lnlF9SYU2g0469OCdSK8tNDcTm+wCTih8dt+KVAgSdjsDk6BanZwHWagQkFU76l3O e+NlBVUeh7RJC7RlUBLxZEs68gCz26Gq5TiemoisG1o0h4mWZXjoXuLd+1SenRghOqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796127417; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=R7zp8HGdSSV4hyONDe/UbPah9xqtFJ7QHpDEg8YI5Bo=; b=yuaeGzUWj/gUj6MsF4lGJ6Q3dDwJMN44845voEbD0cFsoCxWDb2aUXX8P30vwjMr7Pe7 s+XaF8GUwEPCw0DHahisUTGJs66k3TTKIdYXWbY+SHgPMqlrOrf5mMwZ3maxt2/bLlLRH LztGV5CMfVsbpFK7fj/mXnjNVuSbYIiYGBwCton/fajGCs+aqrSNP17WjFgMLsuifAuxr kcpcXAc5yT4PTXyc9EcgyvPfs3muupRA6uY/YxDTU3Nf6VRCTZrUp6a8sFC85M2EQTb+I VSYGLPrETq/Vg7NB+45+W6b5nsEpeVF37OG8ZJhKElpkAYaQm4PrU0tO+/sydl0595A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=byD5dG2P; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=yvCDACcD; arc=none smtp.remote-ip=202.12.124.146 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (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 65A5F606A31A for ; Tue, 1 Dec 2026 12:16:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65A5F606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=byD5dG2P; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=yvCDACcD Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id 3EC9D1D00283 for ; Tue, 1 Dec 2026 07:16:56 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 01 Dec 2026 07:16:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1796127415; x=1796213815; bh=R7zp8HGdSS V4hyONDe/UbPah9xqtFJ7QHpDEg8YI5Bo=; b=byD5dG2PhKBKICZD5+fhqlg7+l FegFSoUdefPSkhZDK8L5gmZa3vZsxH1YRE6P197v+J5u9HRqM6gnYIYLZZaSIWqi vf4jhEfrvztgCSbvLPf6MtGcahD5zTAA1x0TA8nQ5VbuBfGMppWXW7acTr78ngrv /tCc2ePZr2GxGnvUSssBEmn5yD/FDI9AEcSFaTNf71/MjM7NnYoZp2vMv7zPAi+p le3SA9y0LdgYbxaJ+qr7hFSjfrC2r57x8/oXFqphMbdK3o4E9bQyfw9cLp1TR2+s teBRAPWWNW4MReh0XeXau9ZRs0f1iwpWy9P9ySjKBv7XiO74Yxd6UzsHl39g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796127415; x=1796213815; bh=R7zp8HGdSSV4hyONDe/UbPah9xqtFJ7QHpD Eg8YI5Bo=; b=yvCDACcDSL5XoFZJocc+bIK1+NAcc885fKdrtWecqOlg7rGmiZr dTfmgvRTaPDo9/mmKZTrKf7Ael8t+1mAQ+uVwMcR3RcW7GiJF6GkfVaa1vQNypw8 6++p42vQWy6njbL7JWM7jzRQmiafSzVG8vcISt2nBsHU2ogQAPPVMvYihSiTdFHE s6WkLXwzhpHQUbaFfNEkc9m6b1ccX5LLsDKMls4+RRjLcMIYE2icOfQy8bDy06Bf 9WUwY0aCnxj6v1Ca2gQeqXRpnAjlzuAzgE/Kn3M8ObzCZvDJHK6nnQD6oVy1dOy7 vU039pggScI/4DXrWwevfcGXKTsgz6DFyQA== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796127415; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:Z0DoxbQ3dF10gnJ5fQIe7K4+OJwqjb32KFjPDM6D/9YcIj/ oBCDqxk4twYXV+ZlDvvS5KQjssNCtuKRNja2bl/feTOoRyCMshln5+YvEnU9PChc 195fiWznMo0jx+4COK2Bvj+MjBBsG2SiBN1uDZX5bZNMxnkDsWk6svIrEr905jpA dVhGj+UsWvlyR/ZKU9D3E57dn/jVimmq1ZdrUF1vHwvU/imC6hcpLoxBprNrQ97x 7xw95cvS5aupHSnUYW9sZfjFlBrwYaCWhikEJpy0XbgzbYiWtmvCY0hwi46axQ+Y 4vDkehCaa1FOBULdOQF6QVMjyoCuKvLrLx/mcFw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:d/daV38LeWsJHUBNjSFBKqnlpeTVGdnA9h8qHX7Rl9M=:MSpyauwS90Yftub6Ba32mUs91a74fKjd96e+XGFhB/Q=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGZz/QasLL2F8kf57ncellX8rC4h9GSq4HdGRBQ7FyleRodG11ozx0MmcBDVotUc1 4XhMroBe5egtrETNO89qTYdGubGHe7b+3iHRahOzP9zeSRTotrdPBmG4tpXUIx682Kznjy IEwlim00s6YWJ/ymWatgL2pmOim0Gt1GRgMfqoqFGbi+jA2Zap8C1GsqtHGQeBlYKfp5Jk aWeTirs10s0fXxdAcL3oNFQO7va/yFyxNGnoWBRsQgcqMc4P3QXAdxHzOxN4oD0I25uiYD K2y2mEKImYHlL1pzaS0GhUzFzrqQKb7pb9uu1wD4hTXu9pbiIw/zfT6tNOuD88Ha8WrWY7 eQynff3jTEzJckEqhTHMnTPdIUiU+iVvXD4h7HCRhFxlII8C3Oqu+xwnkFDy5uR2Nv4TEO 2EfLjj4s2ND3/9zFQGrpXN3M15sU6AiokBL6QIkAbgbSuPGyPBlACaWY9pDHF14wwaOMuH pjjMszZmq8YLmJvZc7fKt+WzEm4ztVN63HHesuetKg8KFb4Fkt9CmEvYbivcXLuZjIbW3p sB9sDNFcTYbjGeNfYS8pQYU6ccElIY5iF+FvauKBuNjEkA3LblvQRVwKBCHNml32O1kpwO oigFopztJvHdMxpT3Q/PFhlTflKS6bk9373tBlcvExGrVWTir00wOopGOSvw X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Dec 2026 07:16:54 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id d85e6fa8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 1 Dec 2026 12:16:53 +0000 (UTC) Date: Tue, 1 Dec 2026 13:16:50 +0100 From: Patrick Steinhardt To: Junio C Hamano Cc: git@vger.kernel.org, "Mark C. Chu-Carroll" , Karthik Nayak Subject: Re: [PATCH v5 11/13] builtin/rerere: use `OPT_SUBCOMMAND()` Message-ID: References: <20261119-pks-rerere-subcommands-v5-0-0c1092b88958@pks.im> <20261119-pks-rerere-subcommands-v5-11-0c1092b88958@pks.im> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Nov 20, 2026 at 08:54:22AM -0800, Junio C Hamano wrote: > Patrick Steinhardt writes: > > > Fair. I think all of this boils down to the pattern of having a default > > subcommand. I think the pattern is okay as long as we really only accept > > `git rerere` without any flags at all. But I think the moment where the > > user wants to do something non-default we should refuse flags and > > instead ask them to use the aliased subcommand, e.g. `git rerere perform > > --rerere-autoupdate`. So essentially: > > > > usage: git rerere > > or: git rerere perform [--[no-]rerere-autoupdate > > > > That ship has probably sailed for git-rerere(1) though, and I wouldn't > > feel comfortable breaking that interface now. But at least it's my > > personal takeaway for future commands. > > I do not think it is the worst kind of backward-incompatible changes > to give an optional explicit name that you can but do not have to > specify to the default action, so > > usage: git rerere > or: git rerere [run] [--[no-]rerere-autoupdate > > or something (I've always considered the default action to be > "rerere run") would be OK. I do not know of OPT_SUBCOMMAND() > interface has an optional subcommand bit, though ;-). So the idea would be to explicitly mark that subcommand as optional and render it accordingly? I don't think we have such an interface, no. We could add it, but honestly I'd rather not make this pattern easier to use and thus encourage more users of that interface. Patrick