diff options
author | Timo Hirvonen <tihirvon@gmail.com> | 2006-06-24 20:23:06 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-26 14:58:40 -0700 |
commit | a610786f4bc282410d348aba97316115a57740a0 (patch) | |
tree | 5651788e38a45eeb9b47cd35e491c6033dc8547e /diff.c | |
parent | c6744349df5089133b7662e67aba28282b6a963f (diff) | |
download | git-a610786f4bc282410d348aba97316115a57740a0.tar.gz |
Make --raw option available for all diff commands
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1533,6 +1533,8 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac) options->output_format |= DIFF_FORMAT_PATCH; else if (opt_arg(arg, 'U', "unified", &options->context)) options->output_format |= DIFF_FORMAT_PATCH; + else if (!strcmp(arg, "--raw")) + options->output_format |= DIFF_FORMAT_RAW; else if (!strcmp(arg, "--patch-with-raw")) { options->output_format |= DIFF_FORMAT_PATCH | DIFF_FORMAT_RAW; } |