t7011: ensure no whitespace after redirect

This change updates the script to conform to the coding standards outlined in the Git project's documentation. According to the guidelines in Documentation/CodingGuidelines under "Redirection operators", there should be no whitespace after redirection operators. Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>

Seyi Kuforiji committed Oct 19, 2024 at 17:34 UTC 91687cd13f91ac04ce1ba91e5716e178543cf3fa
1 file changed +11 -11
t/t7011-skip-worktree-reading.sh
+11 -11
@@ -32,24 +32,24 @@ setup_absent() {
32 }
33
34 test_absent() {
35 - echo "100644 $EMPTY_BLOB 0 1" > expected &&
36 - git ls-files --stage 1 > result &&
35 + echo "100644 $EMPTY_BLOB 0 1" >expected &&
36 + git ls-files --stage 1 >result &&
37 test_cmp expected result &&
38 test ! -f 1
39 }
40
41 setup_dirty() {
42 git update-index --force-remove 1 &&
43 - echo dirty > 1 &&
43 + echo dirty >1 &&
44 git update-index --add --cacheinfo 100644 $EMPTY_BLOB 1 &&
45 git update-index --skip-worktree 1
46 }
47
48 test_dirty() {
49 - echo "100644 $EMPTY_BLOB 0 1" > expected &&
50 - git ls-files --stage 1 > result &&
49 + echo "100644 $EMPTY_BLOB 0 1" >expected &&
50 + git ls-files --stage 1 >result &&
51 test_cmp expected result &&
52 - echo dirty > expected
52 + echo dirty >expected
53 test_cmp expected 1
54 }
55
@@ -59,7 +59,7 @@ test_expect_success 'setup' '
59 touch ./1 ./2 sub/1 sub/2 &&
60 git add 1 2 sub/1 sub/2 &&
61 git update-index --skip-worktree 1 sub/1 &&
62 - git ls-files -t > result &&
62 + git ls-files -t >result &&
63 test_cmp expect.skip result
64 '
65
@@ -86,7 +86,7 @@ test_expect_success 'update-index --remove' '
86 setup_dirty &&
87 git update-index --remove 1 &&
88 test -z "$(git ls-files 1)" &&
89 - echo dirty > expected &&
89 + echo dirty >expected &&
90 test_cmp expected 1
91 '
92
@@ -110,16 +110,16 @@ test_expect_success 'ls-files --modified' '
110 test -z "$(git ls-files -m)"
111 '
112
113 -echo ":000000 100644 $ZERO_OID $EMPTY_BLOB A 1" > expected
113 +echo ":000000 100644 $ZERO_OID $EMPTY_BLOB A 1" >expected
114 test_expect_success 'diff-index does not examine skip-worktree absent entries' '
115 setup_absent &&
116 - git diff-index HEAD -- 1 > result &&
116 + git diff-index HEAD -- 1 >result &&
117 test_cmp expected result
118 '
119
120 test_expect_success 'diff-index does not examine skip-worktree dirty entries' '
121 setup_dirty &&
122 - git diff-index HEAD -- 1 > result &&
122 + git diff-index HEAD -- 1 >result &&
123 test_cmp expected result
124 '
125