Skip to content

Commit 24a3f30

Browse files
pks-tgitster
authored andcommitted
meson: don't compile git-pack-redundant(1) with breaking changes
We continue to compile the git-pack-redundant(1) builtin with Meson when breaking changes are enabled even though we ultimately don't expose this command at all. This is mostly harmless, but given that the intent of the build option is to be as close as possible to the state where the breaking change has been fully implemented this isn't optimal either. Improve the situation by not compiling the builtin when breaking changes are enabled. Based-on-patch-by: Phillip Wood <[email protected]> Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7208d84 commit 24a3f30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ builtin_sources = [
581581
'builtin/name-rev.c',
582582
'builtin/notes.c',
583583
'builtin/pack-objects.c',
584-
'builtin/pack-redundant.c',
585584
'builtin/pack-refs.c',
586585
'builtin/patch-id.c',
587586
'builtin/prune-packed.c',
@@ -632,6 +631,10 @@ builtin_sources = [
632631
'builtin/write-tree.c',
633632
]
634633

634+
if not get_option('breaking_changes')
635+
builtin_sources += 'builtin/pack-redundant.c'
636+
endif
637+
635638
builtin_sources += custom_target(
636639
output: 'config-list.h',
637640
command: [

0 commit comments

Comments
 (0)