diff options
author | Jeff King <peff@peff.net> | 2009-11-24 04:07:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-24 06:29:45 +0100 |
commit | 1ddf5efc66d92282e3c654ebf263538a0df2ac24 (patch) | |
tree | 099b67f3a26c5a22e4d534116d8a18ddf13165b8 /builtin-prune-packed.c | |
parent | Documentation: undocument gc'd function graph_release() (diff) | |
download | git-1ddf5efc66d92282e3c654ebf263538a0df2ac24.tar.xz git-1ddf5efc66d92282e3c654ebf263538a0df2ac24.zip |
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 '')
-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 be99eb0ac4..f9463deec2 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), |