summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/log.c b/builtin/log.c
index ca353402a6..4b7f8f47f3 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -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)