summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2012-05-24 02:12:24 -0400
committerJunio C Hamano <gitster@pobox.com>2012-05-24 11:29:07 -0700
commite9fc64c60a71a190016a9e9bcb81195a0fa0d9f4 (patch)
tree9d5586d7c51ddfe8fe30bcd599318922d501bdbe /sha1_file.c
parent17a9ac7d6b5f27eb5f8efee324e88db2b6ec9bd6 (diff)
downloadgit-e9fc64c60a71a190016a9e9bcb81195a0fa0d9f4.tar.gz
checkout: no progress messages if !isatty(2).
If stderr isn't a tty, we shouldn't be printing incremental progress messages. In particular, this affects 'git checkout -f . >&logfile' unless you provided -q. And git-new-workdir has no way to provide -q. It would probably be better to have progress.c check isatty(2) all the time, but that wouldn't allow things like 'git push --progress' to force progress reporting to on, so I won't try to solve the general case right now. Actual fix suggested by Jeff King. Signed-off-by: Avery Pennarun <apenwarr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions