summaryrefslogtreecommitdiff
path: root/unix-socket.h
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2013-10-26 21:17:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-10-28 09:00:36 -0700
commit4d715ac05cf5b800a98ce75bbc0cb3ea2dfe70ab (patch)
tree23275296e29eb6822cf13909881c699c5449d6f7 /unix-socket.h
parentt5300-pack-object: do not compare binary data using test_cmp (diff)
downloadtgif-4d715ac05cf5b800a98ce75bbc0cb3ea2dfe70ab.tar.xz
Windows: a test_cmp that is agnostic to random LF <> CRLF conversions
In a number of tests, output that was produced by a shell script is compared to expected output using test_cmp. Unfortunately, the MSYS bash-- when invoked via git, such as in hooks--converts LF to CRLF on output (as produced by echo and printf), which leads to many false positives. Implements a diff tool that undoes the converted CRLF. To avoid that sub-processes are spawned (which is very slow on Windows), the tool is implemented as a shell function. Diff is invoked as usual only when a difference is detected by the shell code. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unix-socket.h')
0 files changed, 0 insertions, 0 deletions