t7004: remove space after redirect operators
Modernize 't7004' by removing whitespace after redirect operators. Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
AbdAlRahman Gad committed
Aug 8, 2024 at 19:32 UTC
ea62c4f94759a37d2e13a97a44bd31438fd7582d
1 file changed
+25
-25
t/t7004-tag.sh
+25
-25
@@ -213,9 +213,9 @@ mytag
213
EOF
214
test_expect_success \
215
'trying to delete tags without params should succeed and do nothing' '
216
- git tag -l > actual && test_cmp expect actual &&
216
+ git tag -l >actual && test_cmp expect actual &&
217
git tag -d &&
218
- git tag -l > actual && test_cmp expect actual
218
+ git tag -l >actual && test_cmp expect actual
219
'
220
221
test_expect_success \
@@ -269,9 +269,9 @@ test_expect_success 'listing all tags should print them ordered' '
269
git tag a1 &&
270
git tag v1.0 &&
271
git tag t210 &&
272
- git tag -l > actual &&
272
+ git tag -l >actual &&
273
test_cmp expect actual &&
274
- git tag > actual &&
274
+ git tag >actual &&
275
test_cmp expect actual
276
'
277
@@ -283,7 +283,7 @@ EOF
283
test_expect_success \
284
'listing tags with substring as pattern must print those matching' '
285
rm *a* &&
286
- git tag -l "*a*" > current &&
286
+ git tag -l "*a*" >current &&
287
test_cmp expect current
288
'
289
@@ -293,7 +293,7 @@ v1.0.1
293
EOF
294
test_expect_success \
295
'listing tags with a suffix as pattern must print those matching' '
296
- git tag -l "*.1" > actual &&
296
+ git tag -l "*.1" >actual &&
297
test_cmp expect actual
298
'
299
@@ -303,7 +303,7 @@ t211
303
EOF
304
test_expect_success \
305
'listing tags with a prefix as pattern must print those matching' '
306
- git tag -l "t21*" > actual &&
306
+ git tag -l "t21*" >actual &&
307
test_cmp expect actual
308
'
309
@@ -312,7 +312,7 @@ a1
312
EOF
313
test_expect_success \
314
'listing tags using a name as pattern must print that one matching' '
315
- git tag -l a1 > actual &&
315
+ git tag -l a1 >actual &&
316
test_cmp expect actual
317
'
318
@@ -321,7 +321,7 @@ v1.0
321
EOF
322
test_expect_success \
323
'listing tags using a name as pattern must print that one matching' '
324
- git tag -l v1.0 > actual &&
324
+ git tag -l v1.0 >actual &&
325
test_cmp expect actual
326
'
327
@@ -331,13 +331,13 @@ v1.1.3
331
EOF
332
test_expect_success \
333
'listing tags with ? in the pattern should print those matching' '
334
- git tag -l "v1.?.?" > actual &&
334
+ git tag -l "v1.?.?" >actual &&
335
test_cmp expect actual
336
'
337
338
test_expect_success \
339
'listing tags using v.* should print nothing because none have v.' '
340
- git tag -l "v.*" > actual &&
340
+ git tag -l "v.*" >actual &&
341
test_must_be_empty actual
342
'
343
@@ -349,7 +349,7 @@ v1.1.3
349
EOF
350
test_expect_success \
351
'listing tags using v* should print only those having v' '
352
- git tag -l "v*" > actual &&
352
+ git tag -l "v*" >actual &&
353
test_cmp expect actual
354
'
355
@@ -1171,7 +1171,7 @@ test_expect_success GPG \
1171
git tag -v emptyfile-signed-tag
1172
'
1173
1174
-printf '\n\n \n\t\nLeading blank lines\n' > sigblanksfile
1174
+printf '\n\n \n\t\nLeading blank lines\n' >sigblanksfile
1175
printf '\n\t \t \nRepeated blank lines\n' >>sigblanksfile
1176
printf '\n\n\nTrailing spaces \t \n' >>sigblanksfile
1177
printf '\nTrailing blank lines\n\n\t \n\n' >>sigblanksfile
@@ -1569,7 +1569,7 @@ test_expect_success \
1569
1570
test_expect_success \
1571
'message in editor has initial comment' '
1572
- ! (GIT_EDITOR=cat git tag -a initial-comment > actual)
1572
+ ! (GIT_EDITOR=cat git tag -a initial-comment >actual)
1573
'
1574
1575
test_expect_success 'message in editor has initial comment: first line' '
@@ -1587,7 +1587,7 @@ test_expect_success \
1587
'
1588
1589
get_tag_header reuse $commit commit $time >expect
1590
-echo "An annotation to be reused" >> expect
1590
+echo "An annotation to be reused" >>expect
1591
test_expect_success \
1592
'overwriting an annotated tag should use its previous body' '
1593
git tag -a -m "An annotation to be reused" reuse &&
@@ -1639,7 +1639,7 @@ hash3=$(git rev-parse HEAD)
1639
1640
# simple linear checks of --continue
1641
1642
-cat > expected <<EOF
1642
+cat >expected <<EOF
1643
v0.2.1
1644
v1.0
1645
v1.0.1
@@ -1679,7 +1679,7 @@ test_expect_success 'checking that first commit is in all tags (relative)' "
1679
test_must_be_empty actual
1680
"
1681
1682
-cat > expected <<EOF
1682
+cat >expected <<EOF
1683
v2.0
1684
EOF
1685
@@ -1688,7 +1688,7 @@ test_expect_success 'checking that second commit only has one tag' "
1688
test_cmp expected actual
1689
"
1690
1691
-cat > expected <<EOF
1691
+cat >expected <<EOF
1692
v0.2.1
1693
v1.0
1694
v1.0.1
@@ -1705,7 +1705,7 @@ test_expect_success 'checking that third commit has no tags' "
1705
test_must_be_empty actual
1706
"
1707
1708
-cat > expected <<EOF
1708
+cat >expected <<EOF
1709
v0.2.1
1710
v1.0
1711
v1.0.1
@@ -1723,14 +1723,14 @@ test_expect_success 'conversely --no-contains on the third commit lists all tags
1723
test_expect_success 'creating simple branch' '
1724
git branch stable v2.0 &&
1725
git checkout stable &&
1726
- echo foo-3.0 > foo &&
1726
+ echo foo-3.0 >foo &&
1727
git commit foo -m fourth &&
1728
git tag v3.0
1729
'
1730
1731
hash4=$(git rev-parse HEAD)
1732
1733
-cat > expected <<EOF
1733
+cat >expected <<EOF
1734
v3.0
1735
EOF
1736
@@ -1739,7 +1739,7 @@ test_expect_success 'checking that branch head only has one tag' "
1739
test_cmp expected actual
1740
"
1741
1742
-cat > expected <<EOF
1742
+cat >expected <<EOF
1743
v0.2.1
1744
v1.0
1745
v1.0.1
@@ -1757,7 +1757,7 @@ test_expect_success 'merging original branch into this branch' '
1757
git tag v4.0
1758
'
1759
1760
-cat > expected <<EOF
1760
+cat >expected <<EOF
1761
v4.0
1762
EOF
1763
@@ -1766,7 +1766,7 @@ test_expect_success 'checking that original branch head has one tag now' "
1766
test_cmp expected actual
1767
"
1768
1769
-cat > expected <<EOF
1769
+cat >expected <<EOF
1770
v0.2.1
1771
v1.0
1772
v1.0.1
@@ -1780,7 +1780,7 @@ test_expect_success 'checking that original branch head with --no-contains lists
1780
test_cmp expected actual
1781
"
1782
1783
-cat > expected <<EOF
1783
+cat >expected <<EOF
1784
v0.2.1
1785
v1.0
1786
v1.0.1