aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-11-17 14:59:33 -0800
committerJunio C Hamano <gitster@pobox.com>2010-11-17 14:59:33 -0800
commit07e0a8314d69986d368b08f8b602ac573fa7d9b6 (patch)
tree1c238e3e91d83d3dae5b31eac9bb11f353ed7c60 /t/test-lib.sh
parentdd9d290bc983255a24c70e26e7fad40c6212b636 (diff)
parent9130ac9fe17831445690ebbb60f09b86f96516b3 (diff)
downloadgit-07e0a8314d69986d368b08f8b602ac573fa7d9b6.tar.gz
git-07e0a8314d69986d368b08f8b602ac573fa7d9b6.tar.xz
Merge branch 'jk/maint-rev-list-nul'
* jk/maint-rev-list-nul: rev-list: handle %x00 NUL in user format
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 2af8f10c8..bbe79e0fc 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -248,6 +248,10 @@ test_decode_color () {
-e 's/.\[m/<RESET>/g'
}
+nul_to_q () {
+ perl -pe 'y/\000/Q/'
+}
+
q_to_nul () {
perl -pe 'y/Q/\000/'
}