Skip to content

Commit 63e6715

Browse files
bebarinogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fcb243f commit 63e6715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builtin/fmt-merge-msg.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
301301
const char *inpath = NULL;
302302
struct option options[] = {
303303
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 },
305307
OPT_FILENAME('F', "file", &inpath, "file to read from"),
306308
OPT_END()
307309
};

0 commit comments

Comments
 (0)