Teach diff -a as shorthand for --text
Signed-off-by: Stephan Feder <sf@b-i-t.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Stephan Feder committed
Jul 7, 2006 at 15:57 UTC
63ac4501199ca768e95ad3442f6580e41a002a33
1 file changed
+1
-1
diff.c
+1
-1
@@ -1561,7 +1561,7 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
1561
options->output_format |= DIFF_FORMAT_PATCH;
1562
options->full_index = options->binary = 1;
1563
}
1564
- else if (!strcmp(arg, "--text")) {
1564
+ else if (!strcmp(arg, "-a") || !strcmp(arg, "--text")) {
1565
options->text = 1;
1566
}
1567
else if (!strcmp(arg, "--name-only"))