Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
test-lib-functions.sh: add lf_to_nul helper
author
Jeff Hostetler
<jeffhost@microsoft.com>
Thu, 11 Aug 2016 14:46:01 +0000
(10:46 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 11 Aug 2016 18:16:13 +0000
(11:16 -0700)
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>
t/test-lib-functions.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1cd828d
)
diff --git
a/t/test-lib-functions.sh
b/t/test-lib-functions.sh
index 4f7eadb5963e7d698f9ee6e265b1657e543cdb44..fdaeb3a96bed361f53030cb6ea5c6bdde445163f 100644
(file)
--- 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/'
}