summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-22 18:26:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-22 18:26:56 (GMT)
commit21247455f328fcf26fc4f78134bcc6f8a676fa8a (patch)
treee2ffee5d17870e5cfd69fb0e915a3568c42dfd33 /t/test-lib-functions.sh
parent2c697a67b14d432b844e996243633711ef5f4b32 (diff)
parent329b26e0b4b2574960ee703eccdb0a7126a60505 (diff)
downloadgit-21247455f328fcf26fc4f78134bcc6f8a676fa8a.zip
git-21247455f328fcf26fc4f78134bcc6f8a676fa8a.tar.gz
git-21247455f328fcf26fc4f78134bcc6f8a676fa8a.tar.bz2
Merge branch 'jc/apply-ws-fix-tab-in-indent' into maint
* jc/apply-ws-fix-tab-in-indent: test: resurrect q_to_tab apply --whitespace=fix: avoid running over the postimage buffer
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 fa62d01..3fc9cc9 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -91,6 +91,10 @@ q_to_tab () {
tr Q '\011'
}
+qz_to_tab_space () {
+ tr QZ '\011\040'
+}
+
append_cr () {
sed -e 's/$/Q/' | tr Q '\015'
}