Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/t8003-blame-corner-cases.sh: Use here documents
author
Mike Hommey
<mh@glandium.org>
Fri, 15 Jul 2016 23:23:46 +0000
(08:23 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 18 Jul 2016 21:33:38 +0000
(14:33 -0700)
Somehow, this test was using:
{
echo A
echo B
} > file
block to feed file contents. This changes those to the form most common
in git test scripts:
cat >file <<-\EOF
A
B
EOF
Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t8003-blame-corner-cases.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3b75ee9
)
diff --git
a/t/t8003-blame-corner-cases.sh
b/t/t8003-blame-corner-cases.sh
index eab2e28094e32289b8a1b4f2e06cefe7a82fc74c..e48370dfa06b33448bbcf63a3db59bce4c1de6e8 100755
(executable)
--- a/
t/t8003-blame-corner-cases.sh
+++ b/
t/t8003-blame-corner-cases.sh
@@
-41,12
+41,12
@@
test_expect_success setup '
test_tick &&
GIT_AUTHOR_NAME=Fourth git commit -m Fourth &&
test_tick &&
GIT_AUTHOR_NAME=Fourth git commit -m Fourth &&
- {
-
echo
ABC
-
echo
DEF
-
echo
XXXX
-
echo
GHIJK
- } >cow &&
+ cat >cow <<-\EOF &&
+ ABC
+ DEF
+ XXXX
+ GHIJK
+ EOF
git add cow &&
test_tick &&
GIT_AUTHOR_NAME=Fifth git commit -m Fifth
git add cow &&
test_tick &&
GIT_AUTHOR_NAME=Fifth git commit -m Fifth
@@
-115,11
+115,11
@@
test_expect_success 'append with -C -C -C' '
test_expect_success 'blame wholesale copy' '
git blame -f -C -C1 HEAD^ -- cow | sed -e "$pick_fc" >current &&
test_expect_success 'blame wholesale copy' '
git blame -f -C -C1 HEAD^ -- cow | sed -e "$pick_fc" >current &&
- {
-
echo
mouse-Initial
-
echo
mouse-Second
-
echo
mouse-Third
- } >expected &&
+ cat >expected <<-\EOF &&
+ mouse-Initial
+ mouse-Second
+ mouse-Third
+ EOF
test_cmp expected current
'
test_cmp expected current
'
@@
-127,12
+127,12
@@
test_expect_success 'blame wholesale copy' '
test_expect_success 'blame wholesale copy and more' '
git blame -f -C -C1 HEAD -- cow | sed -e "$pick_fc" >current &&
test_expect_success 'blame wholesale copy and more' '
git blame -f -C -C1 HEAD -- cow | sed -e "$pick_fc" >current &&
- {
-
echo
mouse-Initial
-
echo
mouse-Second
-
echo
cow-Fifth
-
echo
mouse-Third
- } >expected &&
+ cat >expected <<-\EOF &&
+ mouse-Initial
+ mouse-Second
+ cow-Fifth
+ mouse-Third
+ EOF
test_cmp expected current
'
test_cmp expected current
'