Skip to content

Commit

Permalink
test-lib-functions.sh: add lf_to_nul helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jeffhostetler authored and gitster committed Aug 11, 2016
1 parent 1cd828d commit b249e39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/test-lib-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ test_decode_color () {
'
}

lf_to_nul () {
perl -pe 'y/\012/\000/'
}

nul_to_q () {
perl -pe 'y/\000/Q/'
}
Expand Down

0 comments on commit b249e39

Please sign in to comment.