提交 63ac4501 编写于 作者: S Stephan Feder 提交者: Junio C Hamano

Teach diff -a as shorthand for --text

Signed-off-by: NStephan Feder <sf@b-i-t.de>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 6d64ea96
......@@ -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"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册