summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-18 05:39:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-18 06:36:16 (GMT)
commitd85fe389594dc1b6f64c0aae7146a6d92399c3a9 (patch)
tree949189e623537c43e629652fa7d919ae2e92da82
parent6c69207c73aaf63c13105d526453d0bd75f12f34 (diff)
downloadgit-d85fe389594dc1b6f64c0aae7146a6d92399c3a9.zip
git-d85fe389594dc1b6f64c0aae7146a6d92399c3a9.tar.gz
git-d85fe389594dc1b6f64c0aae7146a6d92399c3a9.tar.bz2
rev-list: honor --quiet option
Nick Andrew noticed that rev-list lets --quiet option to be parsed by underlying diff_options parser but did not pick up the result. This resulted in --quiet option to become effectively a no-op. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-rev-list.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 83a7b134..39ec61c 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -597,6 +597,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
revs.commit_format = CMIT_FMT_UNSPECIFIED;
argc = setup_revisions(argc, argv, &revs, NULL);
+ quiet = DIFF_OPT_TST(&revs.diffopt, QUIET);
for (i = 1 ; i < argc; i++) {
const char *arg = argv[i];
@@ -628,10 +629,6 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
read_revisions_from_stdin(&revs);
continue;
}
- if (!strcmp(arg, "--quiet")) {
- quiet = 1;
- continue;
- }
usage(rev_list_usage);
}