Re: [PATCH 2/2] builtin/init-db: deprecate alias for git-init(1)
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jun 2, 2026, 14:58 UTC
- Message-ID
- <ah7vnZn72jhfmV3T@pks.im>
- In-Reply-To
- <e6e225e7-f915-4ed0-900d-03a7767fb36f@gmail.com>
On Tue, Jun 02, 2026 at 02:12:58PM +0100, Phillip Wood wrote:
Show 13 quoted lines
> On 02/06/2026 13:34, Patrick Steinhardt wrote: > > > > That's entirely fair. My take on this is a bit different, as I think > > it's beneficial to accept a short-term adjustment for core contributors > > in favor of making stuff easier to discover/maintain going forward. > > > A new contributor would probably be quick to learn that every > > `cmd_foo()` entry point is named exactly the same as the subcommand > > name, but they will then eventually trip over the few exceptions like > > `cmd_init_db()` where that assumption doesn't hold. > > Yes, those exceptions to the rule are annoying. Though they mostly exist for > a good reason (code sharing between builtin commands), it would be nice to > minimize them where we can.
Either minimize, or if we don't want to (or can't) the next best thing is to pick the variant that most folks will know about. Which would be the case if we just picked the first patch in this series.
Patrick