summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa8dc96)
raw | patch | inline | side by side (parent: aa8dc96)
author | Jeff King <peff@peff.net> | |
Tue, 24 Nov 2009 03:07:42 +0000 (22:07 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 24 Nov 2009 05:29:45 +0000 (21:29 -0800) |
This matches the behavior of other git programs, and helps
keep cruft out of things like cron job output.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
keep cruft out of things like cron job output.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-prune-packed.c | patch | blob | history |
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c
index be99eb0ac4162411d63d10003fa80e12206b8cc6..f9463deec2f5a5875ee9870e67c990a2fea942db 100644 (file)
--- a/builtin-prune-packed.c
+++ b/builtin-prune-packed.c
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
{
- int opts = VERBOSE;
+ int opts = isatty(2) ? VERBOSE : 0;
const struct option prune_packed_options[] = {
OPT_BIT('n', "dry-run", &opts, "dry run", DRY_RUN),
OPT_NEGBIT('q', "quiet", &opts, "be quiet", VERBOSE),