@@ -3292,7 +3292,7 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
32923292 "apply a patch without touching the working tree" ),
32933293 OPT_BOOLEAN (0 , "apply" , & force_apply ,
32943294 "also apply the patch (use with --stat/--summary/--check)" ),
3295- OPT_STRING (0 , "build-fake-ancestor" , & fake_ancestor , "file" ,
3295+ OPT_FILENAME (0 , "build-fake-ancestor" , & fake_ancestor ,
32963296 "build a temporary index based on embedded index information" ),
32973297 { OPTION_CALLBACK , 'z' , NULL , NULL , NULL ,
32983298 "paths are separated with NUL character" ,
@@ -3327,11 +3327,8 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
33273327 if (apply_default_whitespace )
33283328 parse_whitespace_option (apply_default_whitespace );
33293329
3330- argc = parse_options (argc , argv , builtin_apply_options ,
3330+ argc = parse_options (argc , argv , prefix , builtin_apply_options ,
33313331 apply_usage , 0 );
3332- fake_ancestor = parse_options_fix_filename (prefix , fake_ancestor );
3333- if (fake_ancestor )
3334- fake_ancestor = xstrdup (fake_ancestor );
33353332
33363333 if (apply_with_reject )
33373334 apply = apply_verbosely = 1 ;
0 commit comments