File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4898,6 +4898,9 @@ static void prep_parse_options(struct diff_options *options)
4898
4898
PARSE_OPT_NONEG , diff_opt_unified ),
4899
4899
OPT_BOOL ('W' , "function-context" , & options -> flags .funccontext ,
4900
4900
N_ ("generate diffs with <n> lines context" )),
4901
+ OPT_BIT_F (0 , "raw" , & options -> output_format ,
4902
+ N_ ("generate the diff in raw format" ),
4903
+ DIFF_FORMAT_RAW , PARSE_OPT_NONEG ),
4901
4904
OPT_END ()
4902
4905
};
4903
4906
@@ -4926,9 +4929,7 @@ int diff_opt_parse(struct diff_options *options,
4926
4929
return ac ;
4927
4930
4928
4931
/* Output format options */
4929
- if (!strcmp (arg , "--raw" ))
4930
- options -> output_format |= DIFF_FORMAT_RAW ;
4931
- else if (!strcmp (arg , "--patch-with-raw" )) {
4932
+ if (!strcmp (arg , "--patch-with-raw" )) {
4932
4933
enable_patch_output (& options -> output_format );
4933
4934
options -> output_format |= DIFF_FORMAT_RAW ;
4934
4935
} else if (!strcmp (arg , "--numstat" ))
You can’t perform that action at this time.
0 commit comments