Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t4000-diff-format.sh: modernize style
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Tue, 16 Jul 2013 08:05:35 +0000
(10:05 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 18 Jul 2013 00:50:56 +0000
(17:50 -0700)
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>
t/t4000-diff-format.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
edca415
)
diff --git
a/t/t4000-diff-format.sh
b/t/t4000-diff-format.sh
index 6ddd46915d2757bb5a40057e6850a4f72cd4dafb..2b5dffc3c4d4bdd3f36a18f819875fe43ce0f91e 100755
(executable)
--- a/
t/t4000-diff-format.sh
+++ b/
t/t4000-diff-format.sh
@@
-15,17
+15,17
@@
line 3'
cat path0 >path1
chmod +x path1
cat path0 >path1
chmod +x path1
-test_expect_success
\
- 'update-index --add two files with and without +x.' \
-
'git update-index --add path0 path1
'
+test_expect_success
'update-index --add two files with and without +x.' '
+ git update-index --add path0 path1
+'
mv path0 path0-
sed -e 's/line/Line/' <path0- >path0
chmod +x path0
rm -f path1
mv path0 path0-
sed -e 's/line/Line/' <path0- >path0
chmod +x path0
rm -f path1
-test_expect_success
\
- 'git diff-files -p after editing work tree.' \
-
'git diff-files -p >current
'
+test_expect_success
'git diff-files -p after editing work tree.' '
+ git diff-files -p >actual
+'
# that's as far as it comes
if [ "$(git config --get core.filemode)" = false ]
# that's as far as it comes
if [ "$(git config --get core.filemode)" = false ]
@@
-55,8
+55,8
@@
deleted file mode 100755
-line 3
EOF
-line 3
EOF
-test_expect_success
\
- 'validate git diff-files -p output.' \
-
'compare_diff_patch current expected
'
+test_expect_success
'validate git diff-files -p output.' '
+ compare_diff_patch expected actual
+'
test_done
test_done