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: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed May 28, 2011 at 12:25 UTC 01771a8e2b9f697d1ae4e3d20d9ab86a4aa9e633
1 file changed +2
builtin/log.c
+2
@@ -102,6 +102,8 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix,
102 rev->date_mode = parse_date_format(default_date_mode);
103
104 argc = setup_revisions(argc, argv, rev, opt);
105 + if (quiet)
106 + rev->diffopt.output_format |= DIFF_FORMAT_NO_OUTPUT;
107
108 /* Any arguments at this point are not recognized */
109 if (argc > 1)