diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-12-22 18:08:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-22 09:58:20 -0800 |
commit | fee807c5f6da43ba03f4f92d832fd625ab57b0d7 (patch) | |
tree | bb7c9dd7f4365cc5ecda583430b97e58afa0dead /builtin/rev-list.c | |
parent | mingw: intercept isatty() to handle /dev/null as Git expects it (diff) | |
download | tgif-fee807c5f6da43ba03f4f92d832fd625ab57b0d7.tar.xz |
mingw: adjust is_console() to work with stdin
When determining whether a handle corresponds to a *real* Win32 Console
(as opposed to, say, a character device such as /dev/null), we use the
GetConsoleOutputBufferInfo() function as a tell-tale.
However, that does not work for *input* handles associated with a
console. Let's just use the GetConsoleMode() function for input handles,
and since it does not work on output handles fall back to the previous
method for those.
This patch prepares for using is_console() instead of my previous
misguided attempt in cbb3f3c9b1 (mingw: intercept isatty() to handle
/dev/null as Git expects it, 2016-12-11) that broke everything on
Windows.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-list.c')
0 files changed, 0 insertions, 0 deletions