Skip to content

Commit ea62c4f

Browse files
AbdAlRahmanGadgitster
authored andcommitted
t7004: remove space after redirect operators
Modernize 't7004' by removing whitespace after redirect operators. Signed-off-by: AbdAlRahman Gad <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 406f326 commit ea62c4f

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

t/t7004-tag.sh

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ mytag
213213
EOF
214214
test_expect_success \
215215
'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 &&
217217
git tag -d &&
218-
git tag -l > actual && test_cmp expect actual
218+
git tag -l >actual && test_cmp expect actual
219219
'
220220

221221
test_expect_success \
@@ -269,9 +269,9 @@ test_expect_success 'listing all tags should print them ordered' '
269269
git tag a1 &&
270270
git tag v1.0 &&
271271
git tag t210 &&
272-
git tag -l > actual &&
272+
git tag -l >actual &&
273273
test_cmp expect actual &&
274-
git tag > actual &&
274+
git tag >actual &&
275275
test_cmp expect actual
276276
'
277277

@@ -283,7 +283,7 @@ EOF
283283
test_expect_success \
284284
'listing tags with substring as pattern must print those matching' '
285285
rm *a* &&
286-
git tag -l "*a*" > current &&
286+
git tag -l "*a*" >current &&
287287
test_cmp expect current
288288
'
289289

@@ -293,7 +293,7 @@ v1.0.1
293293
EOF
294294
test_expect_success \
295295
'listing tags with a suffix as pattern must print those matching' '
296-
git tag -l "*.1" > actual &&
296+
git tag -l "*.1" >actual &&
297297
test_cmp expect actual
298298
'
299299

@@ -303,7 +303,7 @@ t211
303303
EOF
304304
test_expect_success \
305305
'listing tags with a prefix as pattern must print those matching' '
306-
git tag -l "t21*" > actual &&
306+
git tag -l "t21*" >actual &&
307307
test_cmp expect actual
308308
'
309309

@@ -312,7 +312,7 @@ a1
312312
EOF
313313
test_expect_success \
314314
'listing tags using a name as pattern must print that one matching' '
315-
git tag -l a1 > actual &&
315+
git tag -l a1 >actual &&
316316
test_cmp expect actual
317317
'
318318

@@ -321,7 +321,7 @@ v1.0
321321
EOF
322322
test_expect_success \
323323
'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 &&
325325
test_cmp expect actual
326326
'
327327

@@ -331,13 +331,13 @@ v1.1.3
331331
EOF
332332
test_expect_success \
333333
'listing tags with ? in the pattern should print those matching' '
334-
git tag -l "v1.?.?" > actual &&
334+
git tag -l "v1.?.?" >actual &&
335335
test_cmp expect actual
336336
'
337337

338338
test_expect_success \
339339
'listing tags using v.* should print nothing because none have v.' '
340-
git tag -l "v.*" > actual &&
340+
git tag -l "v.*" >actual &&
341341
test_must_be_empty actual
342342
'
343343

@@ -349,7 +349,7 @@ v1.1.3
349349
EOF
350350
test_expect_success \
351351
'listing tags using v* should print only those having v' '
352-
git tag -l "v*" > actual &&
352+
git tag -l "v*" >actual &&
353353
test_cmp expect actual
354354
'
355355

@@ -1171,7 +1171,7 @@ test_expect_success GPG \
11711171
git tag -v emptyfile-signed-tag
11721172
'
11731173

1174-
printf '\n\n \n\t\nLeading blank lines\n' > sigblanksfile
1174+
printf '\n\n \n\t\nLeading blank lines\n' >sigblanksfile
11751175
printf '\n\t \t \nRepeated blank lines\n' >>sigblanksfile
11761176
printf '\n\n\nTrailing spaces \t \n' >>sigblanksfile
11771177
printf '\nTrailing blank lines\n\n\t \n\n' >>sigblanksfile
@@ -1569,7 +1569,7 @@ test_expect_success \
15691569

15701570
test_expect_success \
15711571
'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)
15731573
'
15741574

15751575
test_expect_success 'message in editor has initial comment: first line' '
@@ -1587,7 +1587,7 @@ test_expect_success \
15871587
'
15881588

15891589
get_tag_header reuse $commit commit $time >expect
1590-
echo "An annotation to be reused" >> expect
1590+
echo "An annotation to be reused" >>expect
15911591
test_expect_success \
15921592
'overwriting an annotated tag should use its previous body' '
15931593
git tag -a -m "An annotation to be reused" reuse &&
@@ -1639,7 +1639,7 @@ hash3=$(git rev-parse HEAD)
16391639

16401640
# simple linear checks of --continue
16411641

1642-
cat > expected <<EOF
1642+
cat >expected <<EOF
16431643
v0.2.1
16441644
v1.0
16451645
v1.0.1
@@ -1679,7 +1679,7 @@ test_expect_success 'checking that first commit is in all tags (relative)' "
16791679
test_must_be_empty actual
16801680
"
16811681

1682-
cat > expected <<EOF
1682+
cat >expected <<EOF
16831683
v2.0
16841684
EOF
16851685

@@ -1688,7 +1688,7 @@ test_expect_success 'checking that second commit only has one tag' "
16881688
test_cmp expected actual
16891689
"
16901690

1691-
cat > expected <<EOF
1691+
cat >expected <<EOF
16921692
v0.2.1
16931693
v1.0
16941694
v1.0.1
@@ -1705,7 +1705,7 @@ test_expect_success 'checking that third commit has no tags' "
17051705
test_must_be_empty actual
17061706
"
17071707

1708-
cat > expected <<EOF
1708+
cat >expected <<EOF
17091709
v0.2.1
17101710
v1.0
17111711
v1.0.1
@@ -1723,14 +1723,14 @@ test_expect_success 'conversely --no-contains on the third commit lists all tags
17231723
test_expect_success 'creating simple branch' '
17241724
git branch stable v2.0 &&
17251725
git checkout stable &&
1726-
echo foo-3.0 > foo &&
1726+
echo foo-3.0 >foo &&
17271727
git commit foo -m fourth &&
17281728
git tag v3.0
17291729
'
17301730

17311731
hash4=$(git rev-parse HEAD)
17321732

1733-
cat > expected <<EOF
1733+
cat >expected <<EOF
17341734
v3.0
17351735
EOF
17361736

@@ -1739,7 +1739,7 @@ test_expect_success 'checking that branch head only has one tag' "
17391739
test_cmp expected actual
17401740
"
17411741

1742-
cat > expected <<EOF
1742+
cat >expected <<EOF
17431743
v0.2.1
17441744
v1.0
17451745
v1.0.1
@@ -1757,7 +1757,7 @@ test_expect_success 'merging original branch into this branch' '
17571757
git tag v4.0
17581758
'
17591759

1760-
cat > expected <<EOF
1760+
cat >expected <<EOF
17611761
v4.0
17621762
EOF
17631763

@@ -1766,7 +1766,7 @@ test_expect_success 'checking that original branch head has one tag now' "
17661766
test_cmp expected actual
17671767
"
17681768

1769-
cat > expected <<EOF
1769+
cat >expected <<EOF
17701770
v0.2.1
17711771
v1.0
17721772
v1.0.1
@@ -1780,7 +1780,7 @@ test_expect_success 'checking that original branch head with --no-contains lists
17801780
test_cmp expected actual
17811781
"
17821782

1783-
cat > expected <<EOF
1783+
cat >expected <<EOF
17841784
v0.2.1
17851785
v1.0
17861786
v1.0.1

0 commit comments

Comments
 (0)