From: Jeff King Date: Wed, 2 Dec 2020 02:34:11 +0000 (-0500) Subject: Makefile: mark git-maintenance as a builtin X-Git-Tag: v2.30.0-rc0~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a21d0e08902755c09cf4d70279f4e86787d6cdb;p=thirdparty%2Fgit.git Makefile: mark git-maintenance as a builtin We normally get the list of builtin commands by expanding BUILTIN_OBJS. But for commands which are embedded inside another's source file (e.g., cmd_show() in builtin/log.c), the Makefile needs to be told explicitly about them. Since cmd_maintenance() is inside buitin/gc.c, it should be listed explicitly in the BUILT_INS list in the Makefile. Not doing so isn't _too_ tragic, as it simply means we will not make a git-maintenance symlink in libexec/git-core. Since we encourage people to use the "git foo" form, even in scripts which have put libexec into their PATH, nobody seems to have noticed. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 65f8cfb236..60e9ddf60a 100644 --- a/Makefile +++ b/Makefile @@ -764,6 +764,7 @@ BUILT_INS += git-cherry-pick$X BUILT_INS += git-format-patch$X BUILT_INS += git-fsck-objects$X BUILT_INS += git-init$X +BUILT_INS += git-maintenance$X BUILT_INS += git-merge-subtree$X BUILT_INS += git-restore$X BUILT_INS += git-show$X