Skip to content

Commit 0a21d0e

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 25914c4 commit 0a21d0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ BUILT_INS += git-cherry-pick$X
764764
BUILT_INS += git-format-patch$X
765765
BUILT_INS += git-fsck-objects$X
766766
BUILT_INS += git-init$X
767+
BUILT_INS += git-maintenance$X
767768
BUILT_INS += git-merge-subtree$X
768769
BUILT_INS += git-restore$X
769770
BUILT_INS += git-show$X

0 commit comments

Comments
 (0)