aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/am.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-07 10:26:43 +0900
committerJunio C Hamano <gitster@pobox.com>2023-11-07 10:26:43 +0900
commitc0329432acdd1ed344a6b251f35751b0fe38fe1d (patch)
tree9ab6b62b55bdb2000aaa84d1837ea8bb1c6ce12f /builtin/am.c
parentMerge branch 'rs/parse-options-cmdmode' (diff)
parentam, rebase: fix arghelp syntax of --empty (diff)
downloadgit-c0329432acdd1ed344a6b251f35751b0fe38fe1d.tar.gz
git-c0329432acdd1ed344a6b251f35751b0fe38fe1d.zip
Merge branch 'rs/fix-arghelp'
Doc and help update. * rs/fix-arghelp: am, rebase: fix arghelp syntax of --empty
Diffstat (limited to 'builtin/am.c')
-rw-r--r--builtin/am.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c
index ef5b9459af..9f084d58bc 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -2395,7 +2395,7 @@ int cmd_am(int argc, const char **argv, const char *prefix)
{ OPTION_STRING, 'S', "gpg-sign", &state.sign_commit, N_("key-id"),
N_("GPG-sign commits"),
PARSE_OPT_OPTARG, NULL, (intptr_t) "" },
- OPT_CALLBACK_F(STOP_ON_EMPTY_COMMIT, "empty", &state.empty_type, "{stop,drop,keep}",
+ OPT_CALLBACK_F(0, "empty", &state.empty_type, "(stop|drop|keep)",
N_("how to handle empty patches"),
PARSE_OPT_NONEG, am_option_parse_empty),
OPT_HIDDEN_BOOL(0, "rebasing", &state.rebasing,