@matheusbsbs / matheus-bagliano / commits / d85fe38959
Fork 0

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>

Junio C Hamano committed Jul 17, 2008 at 22:39 UTC d85fe389594dc1b6f64c0aae7146a6d92399c3a9
1 file changed +1 -4
builtin-rev-list.c
+1 -4
@@ -597,6 +597,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
597 revs.commit_format = CMIT_FMT_UNSPECIFIED;
598 argc = setup_revisions(argc, argv, &revs, NULL);
599
600 + quiet = DIFF_OPT_TST(&revs.diffopt, QUIET);
601 for (i = 1 ; i < argc; i++) {
602 const char *arg = argv[i];
603
@@ -628,10 +629,6 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
629 read_revisions_from_stdin(&revs);
630 continue;
631 }
631 - if (!strcmp(arg, "--quiet")) {
632 - quiet = 1;
633 - continue;
634 - }
632 usage(rev_list_usage);
633
634 }