git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1cd828d
)
test-lib-functions.sh: add lf_to_nul helper
author
Jeff Hostetler
<redacted>
Thu, 11 Aug 2016 14:46:01 +0000
(10:46 -0400)
committer
Junio C Hamano
<redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/test-lib-functions.sh
patch
|
blob
|
history
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/'
}
git clone https://git.99rst.org/PROJECT