I cleaned up some old style in test script.
for example :
* old style:
test_expect_success \
'title' \
'body line 1 &&
body line 2'
should become:
test_expect_success 'title' '
body line 1 &&
body line 2
'
Signed-off-by: Shuqi Liang <redacted>
---
Hi,I'm Shuqi Liang.a junior student majors in Computer Science at University of Western Ontario.
This patch is the microproject I try to getting involved with the Git project.
I have read 'MyFirstContribution.txt', 'Hacking Git' and the book 《pro git》 ,and I know more about objects, references, packfile format, etc.
Over the coming period, I will delve into the source code and gain a deeper understanding and try to contribute more meaningful patch to the community.
t/t4113-apply-ending.sh | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/t/t4113-apply-ending.sh b/t/t4113-apply-ending.sh
index 66fa51591e..aa57895b22 100755
--- a/t/t4113-apply-ending.sh
+++ b/t/t4113-apply-ending.sh
@@ -24,13 +24,14 @@ echo 'a' >file
echo 'b' >>file
echo 'c' >>file
-test_expect_success setup \
- 'git update-index --add file'
-
+test_expect_success setup '
+ git update-index --add file
+'
# test
-test_expect_success 'apply at the end' \
- 'test_must_fail git apply --index test-patch'
+test_expect_success 'apply at the end' '
+ test_must_fail git apply --index test-patch
+'
cat >test-patch <<\EOF
diff a/file b/file
@@ -47,7 +48,8 @@ b
c'
git update-index file
-test_expect_success 'apply at the beginning' \
- 'test_must_fail git apply --index test-patch'
+test_expect_success 'apply at the beginning' '
+ test_must_fail git apply --index test-patch
+'
test_done
--
2.39.0