From: Patrick Steinhardt Date: Tue, 02 Jun 2026 06:45:52 GMT Subject: Re: [PATCH 2/2] builtin/init-db: deprecate alias for git-init(1) Message-ID: In-Reply-To: On Tue, Jun 02, 2026 at 07:22:50AM +0900, Junio C Hamano wrote: > "Kristoffer Haugsbakk" writes: > > >> I found it to be a bit heavy-handed as it's so trivial to replace with > >> git-init(1), but on the other hand it's a trivial thing to do. > > > > I imagine that most potential git-init-db(1) uses will be buried in some > > scripts that haven’t been touched in years. Then the Git init might > > fail, you get errors about git-commit(1) or something not being a thing > > you can run without a repository, and it ends up being a headscratcher > > since the original failure gets lost. > > > > All to say I think a simple warning would be nice. ;) > > Or just leave it without deprecation. It does not cost much to keep > "init-db", and because we expanded what "git database" means in > later versions of Git since its invention, the name still makes > sense. Thank Linus for not naming it "init-odb"---that might have > been a valid excuse to rename it because it does not cover the ref > database and config database and others. I wouldn't mind that outcome much, either. What triggered this series is that I'm always annoyed that it's "builtin/init-db.c" instead of "builtin/init.c", and the same for `cmd_init_db()`. But I intentionally constructed the series in a way that the first commit can be picked as-is, so that we can adjust our code to the modern world while not doing the deprecation dance. So I'd be equally happy if we just drop the second commit in this series. Patrick