Skip to content

Commit

Permalink
log: --quiet should serve as synonym to -s
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster committed May 28, 2011
1 parent 1c40c36 commit 01771a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/log.c
Expand Up @@ -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)
Expand Down

0 comments on commit 01771a8

Please sign in to comment.