t4000-diff-format.sh: modernize style
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Jul 16, 2013 at 10:05 UTC
8ade9b140f099540bcdec5bcf660faaf05b5e3ee
1 file changed
+9
-9
t/t4000-diff-format.sh
+9
-9
@@ -15,17 +15,17 @@ line 3'
15
cat path0 >path1
16
chmod +x path1
17
18
-test_expect_success \
19
- 'update-index --add two files with and without +x.' \
20
- 'git update-index --add path0 path1'
18
+test_expect_success 'update-index --add two files with and without +x.' '
19
+ git update-index --add path0 path1
20
+'
21
22
mv path0 path0-
23
sed -e 's/line/Line/' <path0- >path0
24
chmod +x path0
25
rm -f path1
26
-test_expect_success \
27
- 'git diff-files -p after editing work tree.' \
28
- 'git diff-files -p >current'
26
+test_expect_success 'git diff-files -p after editing work tree.' '
27
+ git diff-files -p >actual
28
+'
29
30
# that's as far as it comes
31
if [ "$(git config --get core.filemode)" = false ]
@@ -55,8 +55,8 @@ deleted file mode 100755
55
-line 3
56
EOF
57
58
-test_expect_success \
59
- 'validate git diff-files -p output.' \
60
- 'compare_diff_patch current expected'
58
+test_expect_success 'validate git diff-files -p output.' '
59
+ compare_diff_patch expected actual
60
+'
61
62
test_done