diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2016-08-11 10:46:01 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-11 11:16:13 -0700 |
commit | b249e39f9934e020e1cf5e483c3f6f84d3638b31 (patch) | |
tree | 6ffd87fb63d07beaef0b7d79bd922ade38811a23 /t/test-lib-functions.sh | |
parent | 1cd828ddc8a61f6bec93303f4bdbcdbf1c261cb7 (diff) | |
download | git-b249e39f9934e020e1cf5e483c3f6f84d3638b31.tar.gz git-b249e39f9934e020e1cf5e483c3f6f84d3638b31.tar.xz |
test-lib-functions.sh: add lf_to_nul helper
Add lf_to_nul helper function to test-lib-functions.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r-- | t/test-lib-functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 4f7eadb59..fdaeb3a96 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -81,6 +81,10 @@ test_decode_color () { ' } +lf_to_nul () { + perl -pe 'y/\012/\000/' +} + nul_to_q () { perl -pe 'y/\000/Q/' } |