Skip to content

Commit 63ac450

Browse files
Stephan FederJunio C Hamano
authored andcommitted
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>
1 parent 6d64ea9 commit 63ac450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
15611561
options->output_format |= DIFF_FORMAT_PATCH;
15621562
options->full_index = options->binary = 1;
15631563
}
1564-
else if (!strcmp(arg, "--text")) {
1564+
else if (!strcmp(arg, "-a") || !strcmp(arg, "--text")) {
15651565
options->text = 1;
15661566
}
15671567
else if (!strcmp(arg, "--name-only"))

0 commit comments

Comments
 (0)