summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-03 16:34:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-03 16:34:22 (GMT)
commita70f4cb5b06856d5999352930b97fdfc96105954 (patch)
treea41a14a1609753586c3e1027646da0651e7bcda7 /t/test-lib-functions.sh
parent288e6ff5a64331e5da1dd9d978938b44d50f5be9 (diff)
parent329b26e0b4b2574960ee703eccdb0a7126a60505 (diff)
downloadgit-a70f4cb5b06856d5999352930b97fdfc96105954.zip
git-a70f4cb5b06856d5999352930b97fdfc96105954.tar.gz
git-a70f4cb5b06856d5999352930b97fdfc96105954.tar.bz2
Merge branch 'jc/apply-ws-fix-tab-in-indent'
"git apply --whitespace=fix" was not prepared to see a line getting longer after fixing whitespaces (e.g. tab-in-indent aka Python). * 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 61d0804..42c2258 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'
}