提交 01771a8e 编写于 作者: J Junio C Hamano

log: --quiet should serve as synonym to -s

The previous commit simply hijacked --quiet and essentially made it into a
no-op. Instead, take it as a cue that the end user wants to omit the patch
output from commands that default to show patches, e.g. "show".
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 1c40c36b
......@@ -102,6 +102,8 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix,
rev->date_mode = parse_date_format(default_date_mode);
argc = setup_revisions(argc, argv, rev, opt);
if (quiet)
rev->diffopt.output_format |= DIFF_FORMAT_NO_OUTPUT;
/* Any arguments at this point are not recognized */
if (argc > 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册