summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6c69207)
raw | patch | inline | side by side (parent: 6c69207)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Jul 2008 05:39:09 +0000 (22:39 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Jul 2008 06:36:16 +0000 (23:36 -0700) |
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>
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>
builtin-rev-list.c | patch | blob | history |
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 83a7b1349e06dbf1a355888272d9b13a7d4c22c4..39ec61c42858c0b1c5306025f0962b3ee3d7f910 100644 (file)
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
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];
read_revisions_from_stdin(&revs);
continue;
}
- if (!strcmp(arg, "--quiet")) {
- quiet = 1;
- continue;
- }
usage(rev_list_usage);
}