author | Johannes Sixt <j6t@kdbg.org> | |
Thu, 25 Feb 2010 20:03:44 +0000 (21:03 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 25 Feb 2010 20:27:38 +0000 (12:27 -0800) | ||
commit | 3fdcdbdf301dadb7af58fe038501f0af6419a2e0 | |
tree | a93e6858dfc1b9db2bd6fd71eff8a3ece8d2f9d5 | tree | snapshot |
parent | 251a4951a20b23760c3ccf3f3122d4394ab37357 | commit | diff |
Windows: redirect f[re]open("/dev/null") to f[re]open("nul")
On Windows, the equivalent of "/dev/null" is "nul". This implements
compatibility wrappers around fopen() and freopen() that check for this
particular file name.
The new tests exercise code paths where this is relevant.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On Windows, the equivalent of "/dev/null" is "nul". This implements
compatibility wrappers around fopen() and freopen() that check for this
particular file name.
The new tests exercise code paths where this is relevant.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c | diff | blob | history | |
compat/mingw.h | diff | blob | history | |
t/t5510-fetch.sh | diff | blob | history | |
t/t6023-merge-file.sh | diff | blob | history |