Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2010-01-26 03:33:57 +0300
committerJunio C Hamano <gitster@pobox.com>2010-01-26 03:42:23 +0300
commitc4f3f551a61e138f8ace9523d6b16aff37b30302 (patch)
tree839c322653b2f465367f433b8cdca1e51af99081 /t/t3400-rebase.sh
parent2d7f98bac7e1d8b42c558e179ea24f5b06512622 (diff)
tests: consolidate CR removal/addition functions
append_cr(), remove_cr(), q_to_nul() and q_to_cr() are defined in multiple tests. Consolidate them into test-lib.sh so we can stop redefining them. The use of remove_cr() in t0020 to test for a CR is replaced with a new function has_cr() to accurately reflect what is intended (the output of remove_cr() was being thrown away). Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3400-rebase.sh')
-rwxr-xr-xt/t3400-rebase.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh
index 4e6a44b623..4314ad2d66 100755
--- a/t/t3400-rebase.sh
+++ b/t/t3400-rebase.sh
@@ -134,10 +134,6 @@ test_expect_success 'rebase -q is quiet' '
test ! -s output.out
'
-q_to_cr () {
- tr Q '\015'
-}
-
test_expect_success 'Rebase a commit that sprinkles CRs in' '
(
echo "One"