Merge branch 'nd/use-opt-int-set-f'
Code simplification. * nd/use-opt-int-set-f: Use OPT_SET_INT_F() for cmdline option specification
This commit is contained in:
12
builtin/am.c
12
builtin/am.c
@ -2231,12 +2231,12 @@ int cmd_am(int argc, const char **argv, const char *prefix)
|
||||
N_("pass -b flag to git-mailinfo"), KEEP_NON_PATCH),
|
||||
OPT_BOOL('m', "message-id", &state.message_id,
|
||||
N_("pass -m flag to git-mailinfo")),
|
||||
{ OPTION_SET_INT, 0, "keep-cr", &keep_cr, NULL,
|
||||
N_("pass --keep-cr flag to git-mailsplit for mbox format"),
|
||||
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1},
|
||||
{ OPTION_SET_INT, 0, "no-keep-cr", &keep_cr, NULL,
|
||||
N_("do not pass --keep-cr flag to git-mailsplit independent of am.keepcr"),
|
||||
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 0},
|
||||
OPT_SET_INT_F(0, "keep-cr", &keep_cr,
|
||||
N_("pass --keep-cr flag to git-mailsplit for mbox format"),
|
||||
1, PARSE_OPT_NONEG),
|
||||
OPT_SET_INT_F(0, "no-keep-cr", &keep_cr,
|
||||
N_("do not pass --keep-cr flag to git-mailsplit independent of am.keepcr"),
|
||||
0, PARSE_OPT_NONEG),
|
||||
OPT_BOOL('c', "scissors", &state.scissors,
|
||||
N_("strip everything before a scissors line")),
|
||||
OPT_PASSTHRU_ARGV(0, "whitespace", &state.git_apply_opts, N_("action"),
|
||||
|
Reference in New Issue
Block a user