Skip to content

Commit f1f6224

Browse files
committed
t3102: style modernization
Use <<-\END_OF_HERE_DOCUMENT to allow indenting the HERE document to make it clear where each test begins and ends, and relieve readers from having to worry about variable substitution. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4be4f71 commit f1f6224

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

t/t3102-ls-tree-wildcards.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ test_expect_success 'setup' '
1212
'
1313

1414
test_expect_success 'ls-tree a[a] matches literally' '
15-
cat >expected <<EOF &&
16-
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
17-
EOF
15+
cat >expect <<-\EOF &&
16+
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
17+
EOF
1818
git ls-tree -r HEAD "a[a]" >actual &&
19-
test_cmp expected actual
19+
test_cmp expect actual
2020
'
2121

2222
test_expect_success 'ls-tree outside prefix' '
23-
cat >expected <<EOF &&
24-
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 ../a[a]/three
25-
EOF
23+
cat >expect <<-\EOF &&
24+
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 ../a[a]/three
25+
EOF
2626
( cd aa && git ls-tree -r HEAD "../a[a]"; ) >actual &&
27-
test_cmp expected actual
27+
test_cmp expect actual
2828
'
2929

3030
test_expect_failure 'ls-tree does not yet support negated pathspec' '

0 commit comments

Comments
 (0)