@@ -2231,12 +2231,12 @@ int cmd_am(int argc, const char **argv, const char *prefix)
22312231 N_ ("pass -b flag to git-mailinfo" ), KEEP_NON_PATCH ),
22322232 OPT_BOOL ('m' , "message-id" , & state .message_id ,
22332233 N_ ("pass -m flag to git-mailinfo" )),
2234- { OPTION_SET_INT , 0 , "keep-cr" , & keep_cr , NULL ,
2235- N_ ("pass --keep-cr flag to git-mailsplit for mbox format" ),
2236- PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 1 } ,
2237- { OPTION_SET_INT , 0 , "no-keep-cr" , & keep_cr , NULL ,
2238- N_ ("do not pass --keep-cr flag to git-mailsplit independent of am.keepcr" ),
2239- PARSE_OPT_NOARG | PARSE_OPT_NONEG , NULL , 0 } ,
2234+ OPT_SET_INT_F ( 0 , "keep-cr" , & keep_cr ,
2235+ N_ ("pass --keep-cr flag to git-mailsplit for mbox format" ),
2236+ 1 , PARSE_OPT_NONEG ) ,
2237+ OPT_SET_INT_F ( 0 , "no-keep-cr" , & keep_cr ,
2238+ N_ ("do not pass --keep-cr flag to git-mailsplit independent of am.keepcr" ),
2239+ 0 , PARSE_OPT_NONEG ) ,
22402240 OPT_BOOL ('c' , "scissors" , & state .scissors ,
22412241 N_ ("strip everything before a scissors line" )),
22422242 OPT_PASSTHRU_ARGV (0 , "whitespace" , & state .git_apply_opts , N_ ("action" ),
0 commit comments