diff options
author | Jeff King <peff@peff.net> | 2009-11-23 22:07:42 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-23 21:29:45 -0800 |
commit | 1ddf5efc66d92282e3c654ebf263538a0df2ac24 (patch) | |
tree | 099b67f3a26c5a22e4d534116d8a18ddf13165b8 /builtin-prune-packed.c | |
parent | aa8dc9679a6a7daea261abe969af331c741a9f2c (diff) | |
download | git-1ddf5efc66d92282e3c654ebf263538a0df2ac24.tar.gz git-1ddf5efc66d92282e3c654ebf263538a0df2ac24.tar.xz |
prune-packed: only show progress when stderr is a tty
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>
Diffstat (limited to 'builtin-prune-packed.c')
-rw-r--r-- | builtin-prune-packed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index be99eb0ac..f9463deec 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -71,7 +71,7 @@ void prune_packed_objects(int opts) 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), |