test: resurrect q_to_tab
authorJunio C Hamano <gitster@pobox.com>
Fri, 29 Mar 2013 20:38:28 +0000 (13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Mar 2013 20:38:28 +0000 (13:38 -0700)
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>
t/test-lib-functions.sh
index dc070f8d58624e92671b97903b72c309431ebcdc..4a8bac282bee1253fe9b26e78c1cf3bfc0d7fec0 100644 (file)
@@ -87,6 +87,10 @@ q_to_cr () {
        tr Q '\015'
 }
 
+q_to_tab () {
+       tr Q '\011'
+}
+
 qz_to_tab_space () {
        tr QZ '\011\040'
 }