Skip to content

Commit aa089cd

Browse files
felipecgitster
authored andcommitted
log: update to OPT_BOOL
OPT_BOOLEAN is deprecated, and this is what we want. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 427a8ec commit aa089cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

builtin/log.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
100100
int quiet = 0, source = 0, mailmap = 0;
101101

102102
const struct option builtin_log_options[] = {
103-
OPT_BOOLEAN(0, "quiet", &quiet, N_("suppress diff output")),
104-
OPT_BOOLEAN(0, "source", &source, N_("show source")),
105-
OPT_BOOLEAN(0, "use-mailmap", &mailmap, N_("Use mail map file")),
103+
OPT_BOOL(0, "quiet", &quiet, N_("suppress diff output")),
104+
OPT_BOOL(0, "source", &source, N_("show source")),
105+
OPT_BOOL(0, "use-mailmap", &mailmap, N_("Use mail map file")),
106106
{ OPTION_CALLBACK, 0, "decorate", NULL, NULL, N_("decorate options"),
107107
PARSE_OPT_OPTARG, decorate_callback},
108108
OPT_END()
@@ -1092,12 +1092,12 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
10921092
{ OPTION_CALLBACK, 'N', "no-numbered", &numbered, NULL,
10931093
N_("use [PATCH] even with multiple patches"),
10941094
PARSE_OPT_NOARG, no_numbered_callback },
1095-
OPT_BOOLEAN('s', "signoff", &do_signoff, N_("add Signed-off-by:")),
1096-
OPT_BOOLEAN(0, "stdout", &use_stdout,
1095+
OPT_BOOL('s', "signoff", &do_signoff, N_("add Signed-off-by:")),
1096+
OPT_BOOL(0, "stdout", &use_stdout,
10971097
N_("print patches to standard out")),
1098-
OPT_BOOLEAN(0, "cover-letter", &cover_letter,
1098+
OPT_BOOL(0, "cover-letter", &cover_letter,
10991099
N_("generate a cover letter")),
1100-
OPT_BOOLEAN(0, "numbered-files", &just_numbers,
1100+
OPT_BOOL(0, "numbered-files", &just_numbers,
11011101
N_("use simple number sequence for output file names")),
11021102
OPT_STRING(0, "suffix", &fmt_patch_suffix, N_("sfx"),
11031103
N_("use <sfx> instead of '.patch'")),

0 commit comments

Comments
 (0)