test-lib-functions.sh: Add lf_to_nul

Add lf_to_nul() function to test-lib-functions.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff Hostetler
2016-08-05 18:00:33 -04:00
committed by Johannes Schindelin
parent d05bb8aaaf
commit 0915645334

View File

@@ -81,6 +81,10 @@ test_decode_color () {
'
}
lf_to_nul () {
perl -pe 'y/\012/\000/'
}
nul_to_q () {
perl -pe 'y/\000/Q/'
}