log: update to OPT_BOOL
OPT_BOOLEAN is deprecated, and this is what we want. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Apr 7, 2013 at 12:46 UTC
aa089cd9abc5332cddebc60c21f797fffd1ab471
1 file changed
+7
-7
builtin/log.c
+7
-7
@@ -100,9 +100,9 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
100
int quiet = 0, source = 0, mailmap = 0;
101
102
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")),
106
{ OPTION_CALLBACK, 0, "decorate", NULL, NULL, N_("decorate options"),
107
PARSE_OPT_OPTARG, decorate_callback},
108
OPT_END()
@@ -1092,12 +1092,12 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
1092
{ OPTION_CALLBACK, 'N', "no-numbered", &numbered, NULL,
1093
N_("use [PATCH] even with multiple patches"),
1094
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,
1097
N_("print patches to standard out")),
1098
- OPT_BOOLEAN(0, "cover-letter", &cover_letter,
1098
+ OPT_BOOL(0, "cover-letter", &cover_letter,
1099
N_("generate a cover letter")),
1100
- OPT_BOOLEAN(0, "numbered-files", &just_numbers,
1100
+ OPT_BOOL(0, "numbered-files", &just_numbers,
1101
N_("use simple number sequence for output file names")),
1102
OPT_STRING(0, "suffix", &fmt_patch_suffix, N_("sfx"),
1103
N_("use <sfx> instead of '.patch'")),