From: Junio C Hamano Date: Sat, 7 Jan 2006 02:53:16 +0000 (-0800) Subject: unpack-objects: default to quiet if stderr is not a tty. X-Git-Tag: v1.0.8^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=476e801111698ac5df6821f389c81abc017fc0c9;p=git.git unpack-objects: default to quiet if stderr is not a tty. This would help cron/at jobs that run send-pack to mirror repositories. Signed-off-by: Junio C Hamano --- diff --git a/unpack-objects.c b/unpack-objects.c index 5c5cb12f6..4b5b5cb3e 100644 --- a/unpack-objects.c +++ b/unpack-objects.c @@ -269,6 +269,8 @@ int main(int argc, char **argv) setup_git_directory(); + quiet = !isatty(2); + for (i = 1 ; i < argc; i++) { const char *arg = argv[i];