From: "Jack McGuinness via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Jack McGuinness <jmcguinness2@ucmerced.edu>,
Jack McGuinness <jmcguinness2@ucmerced.edu>
Subject: [PATCH 2/3] [GSoC][Patch] area: t4202-log.sh, modernizing test script p2
Date: Tue, 19 Apr 2022 01:31:15 +0000 [thread overview]
Message-ID: <e5c29a12df61d0f587594664f50ec025b934fadf.1650331876.git.gitgitgadget@gmail.com> (raw)
In-Reply-To: <pull.1220.git.1650331876.gitgitgadget@gmail.com>
From: Jack McGuinness <jmcguinness2@ucmerced.edu>
Remove whitespace after redirect operator.
Signed-off-by: Jack McGuinness <jmcguinness2@ucmerced.edu>
---
t/t4202-log.sh | 62 +++++++++++++++++++++++++-------------------------
1 file changed, 31 insertions(+), 31 deletions(-)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index c5d191356f1..fe3976829bb 100755
--- a/t/t4202-log.sh
+++ b/t/t4202-log.sh
@@ -45,29 +45,29 @@ test_expect_success setup '
git commit -m sixth
'
-printf "sixth\nfifth\nfourth\nthird\nsecond\ninitial" > expect
+printf "sixth\nfifth\nfourth\nthird\nsecond\ninitial" >expect
test_expect_success 'pretty' '
- git log --pretty="format:%s" > actual &&
+ git log --pretty="format:%s" >actual &&
test_cmp expect actual
'
-printf "sixth\nfifth\nfourth\nthird\nsecond\ninitial\n" > expect
+printf "sixth\nfifth\nfourth\nthird\nsecond\ninitial\n" >expect
test_expect_success 'pretty (tformat)' '
- git log --pretty="tformat:%s" > actual &&
+ git log --pretty="tformat:%s" >actual &&
test_cmp expect actual
'
test_expect_success 'pretty (shortcut)' '
- git log --pretty="%s" > actual &&
+ git log --pretty="%s" >actual &&
test_cmp expect actual
'
test_expect_success 'format' '
- git log --format="%s" > actual &&
+ git log --format="%s" >actual &&
test_cmp expect actual
'
-cat > expect << EOF
+cat >expect << EOF
This is
the sixth
commit.
@@ -77,16 +77,16 @@ cat > expect << EOF
EOF
test_expect_success 'format %w(11,1,2)' '
- git log -2 --format="%w(11,1,2)This is the %s commit." > actual &&
+ git log -2 --format="%w(11,1,2)This is the %s commit." >actual &&
test_cmp expect actual
'
test_expect_success 'format %w(,1,2)' '
- git log -2 --format="%w(,1,2)This is%nthe %s%ncommit." > actual &&
+ git log -2 --format="%w(,1,2)This is%nthe %s%ncommit." >actual &&
test_cmp expect actual
'
-cat > expect << EOF
+cat >expect << EOF
$(git rev-parse --short :/sixth ) sixth
$(git rev-parse --short :/fifth ) fifth
$(git rev-parse --short :/fourth ) fourth
@@ -95,14 +95,14 @@ $(git rev-parse --short :/second ) second
$(git rev-parse --short :/initial) initial
EOF
test_expect_success 'oneline' '
- git log --oneline > actual &&
+ git log --oneline >actual &&
test_cmp expect actual
'
test_expect_success 'diff-filter=A' '
- git log --no-renames --pretty="format:%s" --diff-filter=A HEAD > actual &&
- git log --no-renames --pretty="format:%s" --diff-filter A HEAD > actual-separate &&
- printf "fifth\nfourth\nthird\ninitial" > expect &&
+ git log --no-renames --pretty="format:%s" --diff-filter=A HEAD >actual &&
+ git log --no-renames --pretty="format:%s" --diff-filter A HEAD >actual-separate &&
+ printf "fifth\nfourth\nthird\ninitial" >expect &&
test_cmp expect actual &&
test_cmp expect actual-separate
'
@@ -174,43 +174,43 @@ test_expect_success 'git config log.follow is overridden by --no-follow' '
# Note that these commits are intentionally listed out of order.
last_three="$(git rev-parse :/fourth :/sixth :/fifth)"
-cat > expect << EOF
+cat >expect << EOF
$(git rev-parse --short :/sixth ) sixth
$(git rev-parse --short :/fifth ) fifth
$(git rev-parse --short :/fourth) fourth
EOF
test_expect_success 'git log --no-walk <commits> sorts by commit time' '
- git log --no-walk --oneline $last_three > actual &&
+ git log --no-walk --oneline $last_three >actual &&
test_cmp expect actual
'
test_expect_success 'git log --no-walk=sorted <commits> sorts by commit time' '
- git log --no-walk=sorted --oneline $last_three > actual &&
+ git log --no-walk=sorted --oneline $last_three >actual &&
test_cmp expect actual
'
-cat > expect << EOF
+cat >expect << EOF
=== $(git rev-parse --short :/sixth ) sixth
=== $(git rev-parse --short :/fifth ) fifth
=== $(git rev-parse --short :/fourth) fourth
EOF
test_expect_success 'git log --line-prefix="=== " --no-walk <commits> sorts by commit time' '
- git log --line-prefix="=== " --no-walk --oneline $last_three > actual &&
+ git log --line-prefix="=== " --no-walk --oneline $last_three >actual &&
test_cmp expect actual
'
-cat > expect << EOF
+cat >expect << EOF
$(git rev-parse --short :/fourth) fourth
$(git rev-parse --short :/sixth ) sixth
$(git rev-parse --short :/fifth ) fifth
EOF
test_expect_success 'git log --no-walk=unsorted <commits> leaves list of commits as given' '
- git log --no-walk=unsorted --oneline $last_three > actual &&
+ git log --no-walk=unsorted --oneline $last_three >actual &&
test_cmp expect actual
'
test_expect_success 'git show <commits> leaves list of commits as given' '
- git show --oneline -s $last_three > actual &&
+ git show --oneline -s $last_three >actual &&
test_cmp expect actual
'
@@ -227,7 +227,7 @@ test_expect_success 'log --grep' '
test_cmp expect actual
'
-cat > expect << EOF
+cat >expect << EOF
second
initial
EOF
@@ -514,7 +514,7 @@ test_expect_success '-c color.grep.matchSelected log --grep' '
test_cmp expect actual
'
-cat > expect <<EOF
+cat >expect <<EOF
* Second
* sixth
* fifth
@@ -528,7 +528,7 @@ test_expect_success 'simple log --graph' '
test_cmp_graph
'
-cat > expect <<EOF
+cat >expect <<EOF
123 * Second
123 * sixth
123 * fifth
@@ -550,7 +550,7 @@ test_expect_success 'set up merge history' '
git merge side
'
-cat > expect <<\EOF
+cat >expect <<\EOF
* Merge branch 'side'
|\
| * side-2
@@ -569,7 +569,7 @@ test_expect_success 'log --graph with merge' '
test_cmp_graph --date-order
'
-cat > expect <<\EOF
+cat >expect <<\EOF
| | | * Merge branch 'side'
| | | |\
| | | | * side-2
@@ -588,7 +588,7 @@ test_expect_success 'log --graph --line-prefix="| | | " with merge' '
test_cmp_graph --line-prefix="| | | " --date-order
'
-cat > expect.colors <<\EOF
+cat >expect.colors <<\EOF
* Merge branch 'side'
<BLUE>|<RESET><CYAN>\<RESET>
<BLUE>|<RESET> * side-2
@@ -618,7 +618,7 @@ test_expect_success 'diff-tree --graph' '
grep "one" actual
'
-cat > expect <<\EOF
+cat >expect <<\EOF
* commit main
|\ Merge: A B
| | Author: A U Thor <author@example.com>
@@ -699,7 +699,7 @@ test_expect_success 'set up more tangled history' '
git merge reach
'
-cat > expect <<\EOF
+cat >expect <<\EOF
* Merge tag 'reach'
|\
| \
@@ -1822,7 +1822,7 @@ test_expect_success GPGSM 'log x509 fingerprint' '
'
test_expect_success GPGSM 'log OpenPGP fingerprint' '
- echo "D4BE22311AD3131E5EDA29A461092E85B7227189" > expect &&
+ echo "D4BE22311AD3131E5EDA29A461092E85B7227189" >expect &&
git log -n1 --format="%GP" signed-subkey >actual &&
test_cmp expect actual
'
--
gitgitgadget
next prev parent reply other threads:[~2022-04-19 1:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-19 1:31 [PATCH 0/3] [GSoC][Patch] area: t4202-log.sh, modernizing test script Jack McGuinness via GitGitGadget
2022-04-19 1:31 ` [PATCH 1/3] " Jack McGuinness via GitGitGadget
2022-04-19 1:31 ` Jack McGuinness via GitGitGadget [this message]
2022-04-19 1:31 ` [PATCH 3/3] [GSoC][Patch] area: t4202-log.sh, modernizing test script p3 Jack McGuinness via GitGitGadget
2022-04-19 5:26 ` [PATCH 0/3] [GSoC][Patch] area: t4202-log.sh, modernizing test script Bagas Sanjaya
2022-04-19 5:34 ` Jack McGuinness
2022-04-25 9:45 ` Christian Couder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5c29a12df61d0f587594664f50ec025b934fadf.1650331876.git.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=jmcguinness2@ucmerced.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).