fmt-merge-msg: hide summary option
The --summary command line option has been deprecated in favor of --log. Hide the option from the help message to further discourage the use of this option. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stephen Boyd committed
Mar 24, 2010 at 00:16 UTC
63e671508782ca2dd386e5878d3682090fd64eda
1 file changed
+3
-1
builtin/fmt-merge-msg.c
+3
-1
@@ -301,7 +301,9 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
301
const char *inpath = NULL;
302
struct option options[] = {
303
OPT_BOOLEAN(0, "log", &merge_summary, "populate log with the shortlog"),
304
- OPT_BOOLEAN(0, "summary", &merge_summary, "alias for --log"),
304
+ { OPTION_BOOLEAN, 0, "summary", &merge_summary, NULL,
305
+ "alias for --log (deprecated)",
306
+ PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
307
OPT_FILENAME('F', "file", &inpath, "file to read from"),
308
OPT_END()
309
};