summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-29 20:38:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-29 20:38:28 (GMT)
commit329b26e0b4b2574960ee703eccdb0a7126a60505 (patch)
tree6d71fe08ae292cc80c768723e8c04dd181c59d5a /t/test-lib-functions.sh
parent250b3c6c992b3cb04e756eb33bed99442fc55193 (diff)
downloadgit-329b26e0b4b2574960ee703eccdb0a7126a60505.zip
git-329b26e0b4b2574960ee703eccdb0a7126a60505.tar.gz
git-329b26e0b4b2574960ee703eccdb0a7126a60505.tar.bz2
test: resurrect q_to_tab
New test may want to use this helper; keep it for them that do not need to protect literal SP. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index dc070f8..4a8bac2 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -87,6 +87,10 @@ q_to_cr () {
tr Q '\015'
}
+q_to_tab () {
+ tr Q '\011'
+}
+
qz_to_tab_space () {
tr QZ '\011\040'
}