@@ -4964,15 +4964,15 @@ int apply_parse_options(int argc, const char **argv,
49644964 const char * const * apply_usage )
49654965{
49664966 struct option builtin_apply_options [] = {
4967- { OPTION_CALLBACK , 0 , "exclude" , state , N_ ("path" ),
4967+ OPT_CALLBACK_F ( 0 , "exclude" , state , N_ ("path" ),
49684968 N_ ("don't apply changes matching the given path" ),
4969- PARSE_OPT_NONEG , apply_option_parse_exclude } ,
4970- { OPTION_CALLBACK , 0 , "include" , state , N_ ("path" ),
4969+ PARSE_OPT_NONEG , apply_option_parse_exclude ) ,
4970+ OPT_CALLBACK_F ( 0 , "include" , state , N_ ("path" ),
49714971 N_ ("apply changes matching the given path" ),
4972- PARSE_OPT_NONEG , apply_option_parse_include } ,
4973- { OPTION_CALLBACK , 'p' , NULL , state , N_ ("num" ),
4972+ PARSE_OPT_NONEG , apply_option_parse_include ) ,
4973+ OPT_CALLBACK ( 'p' , NULL , state , N_ ("num" ),
49744974 N_ ("remove <num> leading slashes from traditional diff paths" ),
4975- 0 , apply_option_parse_p } ,
4975+ apply_option_parse_p ) ,
49764976 OPT_BOOL (0 , "no-add" , & state -> no_add ,
49774977 N_ ("ignore additions made by the patch" )),
49784978 OPT_BOOL (0 , "stat" , & state -> diffstat ,
@@ -5005,15 +5005,15 @@ int apply_parse_options(int argc, const char **argv,
50055005 N_ ("paths are separated with NUL character" ), '\0' ),
50065006 OPT_INTEGER ('C' , NULL , & state -> p_context ,
50075007 N_ ("ensure at least <n> lines of context match" )),
5008- { OPTION_CALLBACK , 0 , "whitespace" , state , N_ ("action" ),
5008+ OPT_CALLBACK ( 0 , "whitespace" , state , N_ ("action" ),
50095009 N_ ("detect new or modified lines that have whitespace errors" ),
5010- 0 , apply_option_parse_whitespace } ,
5011- { OPTION_CALLBACK , 0 , "ignore-space-change" , state , NULL ,
5010+ apply_option_parse_whitespace ) ,
5011+ OPT_CALLBACK_F ( 0 , "ignore-space-change" , state , NULL ,
50125012 N_ ("ignore changes in whitespace when finding context" ),
5013- PARSE_OPT_NOARG , apply_option_parse_space_change } ,
5014- { OPTION_CALLBACK , 0 , "ignore-whitespace" , state , NULL ,
5013+ PARSE_OPT_NOARG , apply_option_parse_space_change ) ,
5014+ OPT_CALLBACK_F ( 0 , "ignore-whitespace" , state , NULL ,
50155015 N_ ("ignore changes in whitespace when finding context" ),
5016- PARSE_OPT_NOARG , apply_option_parse_space_change } ,
5016+ PARSE_OPT_NOARG , apply_option_parse_space_change ) ,
50175017 OPT_BOOL ('R' , "reverse" , & state -> apply_in_reverse ,
50185018 N_ ("apply the patch in reverse" )),
50195019 OPT_BOOL (0 , "unidiff-zero" , & state -> unidiff_zero ,
@@ -5029,9 +5029,9 @@ int apply_parse_options(int argc, const char **argv,
50295029 OPT_BIT (0 , "recount" , options ,
50305030 N_ ("do not trust the line counts in the hunk headers" ),
50315031 APPLY_OPT_RECOUNT ),
5032- { OPTION_CALLBACK , 0 , "directory" , state , N_ ("root" ),
5032+ OPT_CALLBACK ( 0 , "directory" , state , N_ ("root" ),
50335033 N_ ("prepend <root> to all filenames" ),
5034- 0 , apply_option_parse_directory } ,
5034+ apply_option_parse_directory ) ,
50355035 OPT_END ()
50365036 };
50375037
0 commit comments