Merge branch 'rs/opt-updates'
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2018 21:33:43 +0000 (14:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2018 21:33:43 +0000 (14:33 -0700)
"git cmd -h" updates.

* rs/opt-updates:
parseopt: group literal string alternatives in argument help
remote: improve argument help for add --mirror
checkout-index: improve argument help for --stage

1  2 
builtin/checkout-index.c
builtin/pull.c
builtin/push.c
builtin/remote.c
builtin/send-pack.c
Simple merge
diff --cc builtin/pull.c
Simple merge
diff --cc builtin/push.c
index ef4c188895beab317a66523b23a9f1c87e634405,b5a941ccc2214d52ad41409bf4b83799bc0f9e1c..d09a42062c36d930b8147d6b0a4bcfedf34a2321
@@@ -558,10 -558,10 +558,10 @@@ int cmd_push(int argc, const char **arg
                OPT_BIT( 0,  "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN),
                OPT_BIT('f', "force", &flags, N_("force updates"), TRANSPORT_PUSH_FORCE),
                { OPTION_CALLBACK,
 -                0, CAS_OPT_NAME, &cas, N_("refname>:<expect"),
 +                0, CAS_OPT_NAME, &cas, N_("<refname>:<expect>"),
                  N_("require old value of ref to be at this value"),
 -                PARSE_OPT_OPTARG, parseopt_push_cas_option },
 +                PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP, parseopt_push_cas_option },
-               { OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "check|on-demand|no",
+               { OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "(check|on-demand|no)",
                        N_("control recursive pushing of submodules"),
                        PARSE_OPT_OPTARG, option_parse_recurse_submodules },
                OPT_BOOL_F( 0 , "thin", &thin, N_("use thin pack"), PARSE_OPT_NOCOMPLETE),
Simple merge
Simple merge