]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pack-objects: remove duplicate --stdin-packs definition
authorRené Scharfe <l.s.r@web.de>
Fri, 27 Feb 2026 19:27:00 +0000 (20:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Feb 2026 19:38:25 +0000 (11:38 -0800)
cd846bacc7 (pack-objects: introduce '--stdin-packs=follow', 2025-06-23)
added a new definition of the option --stdin-packs that accepts an
argument.  It kept the old definition, which still shows up in the short
help, but is shadowed by the new one.  Remove it.

Hinted-at-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c

index ff6900b6545a248f98bce88fa2fb1f11846fc2dc..8849cb194851893fc035c3d1649370385ffb4b77 100644 (file)
@@ -4925,8 +4925,6 @@ int cmd_pack_objects(int argc,
                OPT_CALLBACK_F(0, "stdin-packs", &stdin_packs, N_("mode"),
                             N_("read packs from stdin"),
                             PARSE_OPT_OPTARG, parse_stdin_packs_mode),
-               OPT_BOOL(0, "stdin-packs", &stdin_packs,
-                        N_("read packs from stdin")),
                OPT_BOOL(0, "stdout", &pack_to_stdout,
                         N_("output pack to stdout")),
                OPT_BOOL(0, "include-tag", &include_tag,