Skip to content

Commit b9575e7

Browse files
committed
Merge branch 'jc/log-quiet-fix'
* jc/log-quiet-fix: log: --quiet should serve as synonym to -s
2 parents 2177dc6 + 01771a8 commit b9575e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/log.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
107107
PARSE_OPT_KEEP_DASHDASH);
108108

109109
argc = setup_revisions(argc, argv, rev, opt);
110+
if (quiet)
111+
rev->diffopt.output_format |= DIFF_FORMAT_NO_OUTPUT;
110112

111113
/* Any arguments at this point are not recognized */
112114
if (argc > 1)

0 commit comments

Comments
 (0)