]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: replace isatty() hack
authorJeff Hostetler <jeffhost@microsoft.com>
Thu, 22 Dec 2016 17:09:23 +0000 (18:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Dec 2016 17:58:46 +0000 (09:58 -0800)
commita9b8a09c3c30886c79133da9f48ef9f98c21c3b2
tree311097d97a6b3ee6374ee3d582a4d5d317746e81
parent86924838e3d881cda2192fd79ac3a58aad75efd3
mingw: replace isatty() hack

Git for Windows has carried a patch that depended on internals
of MSVC runtime, but it does not work correctly with recent MSVC
runtime. A replacement was written originally for compiling
with VC++. The patch in this message is a backport of that
replacement, and it also fixes the previous attempt to make
isatty() tell that /dev/null is *not* an interactive terminal.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Tested-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/winansi.c