We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed88148 commit c659f30Copy full SHA for c659f30
diff.c
@@ -4901,6 +4901,10 @@ static void prep_parse_options(struct diff_options *options)
4901
OPT_BIT_F(0, "raw", &options->output_format,
4902
N_("generate the diff in raw format"),
4903
DIFF_FORMAT_RAW, PARSE_OPT_NONEG),
4904
+ OPT_BITOP(0, "patch-with-raw", &options->output_format,
4905
+ N_("synonym for '-p --raw'"),
4906
+ DIFF_FORMAT_PATCH | DIFF_FORMAT_RAW,
4907
+ DIFF_FORMAT_NO_OUTPUT),
4908
OPT_END()
4909
};
4910
@@ -4929,10 +4933,7 @@ int diff_opt_parse(struct diff_options *options,
4929
4933
return ac;
4930
4934
4931
4935
/* Output format options */
4932
- if (!strcmp(arg, "--patch-with-raw")) {
- enable_patch_output(&options->output_format);
- options->output_format |= DIFF_FORMAT_RAW;
- } else if (!strcmp(arg, "--numstat"))
4936
+ if (!strcmp(arg, "--numstat"))
4937
options->output_format |= DIFF_FORMAT_NUMSTAT;
4938
else if (!strcmp(arg, "--shortstat"))
4939
options->output_format |= DIFF_FORMAT_SHORTSTAT;
0 commit comments