fetch-pack: eliminate spurious error messages
[gitweb.git] / builtin / revert.c
index 02ca95f4feeb4fe2ae90de2c9dfca9e9ee9970c3..17dc8c8d1e837ceac780b0de8e3b3921e1329894 100644 (file)
@@ -117,6 +117,7 @@ static void parse_args(int argc, const char **argv, struct replay_opts *opts)
                OPT_END(),
                OPT_END(),
                OPT_END(),
+               OPT_END(),
        };
 
        if (opts->action == REPLAY_PICK) {
@@ -124,6 +125,7 @@ static void parse_args(int argc, const char **argv, struct replay_opts *opts)
                        OPT_BOOLEAN('x', NULL, &opts->record_origin, N_("append commit name")),
                        OPT_BOOLEAN(0, "ff", &opts->allow_ff, N_("allow fast-forward")),
                        OPT_BOOLEAN(0, "allow-empty", &opts->allow_empty, N_("preserve initially empty commits")),
+                       OPT_BOOLEAN(0, "allow-empty-message", &opts->allow_empty_message, N_("allow commits with empty messages")),
                        OPT_BOOLEAN(0, "keep-redundant-commits", &opts->keep_redundant_commits, N_("keep redundant, empty commits")),
                        OPT_END(),
                };