Skip to content

Commit

Permalink
Teach diff -a as shorthand for --text
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Feder <sf@b-i-t.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Stephan Feder authored and Junio C Hamano committed Jul 7, 2006
1 parent 6d64ea9 commit 63ac450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
options->output_format |= DIFF_FORMAT_PATCH;
options->full_index = options->binary = 1;
}
else if (!strcmp(arg, "--text")) {
else if (!strcmp(arg, "-a") || !strcmp(arg, "--text")) {
options->text = 1;
}
else if (!strcmp(arg, "--name-only"))
Expand Down

0 comments on commit 63ac450

Please sign in to comment.