Skip to content

Commit 796649e

Browse files
jeffhostetlerdscho
authored andcommitted
test-lib-functions.sh: Add lf_to_nul
Add lf_to_nul() function to test-lib-functions. Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9ee5f0a commit 796649e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib-functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ test_decode_color () {
8181
'
8282
}
8383

84+
lf_to_nul () {
85+
perl -pe 'y/\012/\000/'
86+
}
87+
8488
nul_to_q () {
8589
perl -pe 'y/\000/Q/'
8690
}

0 commit comments

Comments
 (0)