Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharvi Mendiratta <charvi077@gmail.com>2021-02-10 14:36:45 +0300
committerJunio C Hamano <gitster@pobox.com>2021-02-11 00:58:19 +0300
commit17665167bb548b7c46e207890edbec7feba054bb (patch)
tree8fb973faa30e252834b11e8df1939c81e85488ba /t/t3437-rebase-fixup-options.sh
parent75ace8329c730571281357dd40718a8aefc50db7 (diff)
t/t3437: fixup here-docs in the 'setup' test
The most common way to format here-docs in Git test scripts is for the body and EOF to be indented the same amount as the command which opened the here-doc. Fix a few here-docs in this script to conform to that standard and also remove the unnecessary curly braces. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Phillip Wood <phillip.wood@dunelm.org.uk> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Charvi Mendiratta <charvi077@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3437-rebase-fixup-options.sh')
-rwxr-xr-xt/t3437-rebase-fixup-options.sh62
1 files changed, 31 insertions, 31 deletions
diff --git a/t/t3437-rebase-fixup-options.sh b/t/t3437-rebase-fixup-options.sh
index 945df2555b..f599da3e08 100755
--- a/t/t3437-rebase-fixup-options.sh
+++ b/t/t3437-rebase-fixup-options.sh
@@ -38,13 +38,13 @@ get_author () {
test_expect_success 'setup' '
cat >message <<-EOF &&
- amend! B
- ${EMPTY}
- new subject
- ${EMPTY}
- new
- body
- EOF
+ amend! B
+ $EMPTY
+ new subject
+ $EMPTY
+ new
+ body
+ EOF
sed "1,2d" message >expected-message &&
@@ -70,38 +70,38 @@ test_expect_success 'setup' '
git commit --fixup=HEAD -a &&
test_tick &&
git commit --allow-empty -F - <<-EOF &&
- amend! B
- ${EMPTY}
- B
- ${EMPTY}
- edited 1
- EOF
+ amend! B
+ $EMPTY
+ B
+ $EMPTY
+ edited 1
+ EOF
test_tick &&
git commit --allow-empty -F - <<-EOF &&
- amend! amend! B
- ${EMPTY}
- B
- ${EMPTY}
- edited 1
- ${EMPTY}
- edited 2
- EOF
+ amend! amend! B
+ $EMPTY
+ B
+ $EMPTY
+ edited 1
+ $EMPTY
+ edited 2
+ EOF
echo B2 >B &&
test_tick &&
FAKE_COMMIT_AMEND="edited squash" git commit --squash=HEAD -a &&
echo B3 >B &&
test_tick &&
git commit -a -F - <<-EOF &&
- amend! amend! amend! B
- ${EMPTY}
- B
- ${EMPTY}
- edited 1
- ${EMPTY}
- edited 2
- ${EMPTY}
- edited 3
- EOF
+ amend! amend! amend! B
+ $EMPTY
+ B
+ $EMPTY
+ edited 1
+ $EMPTY
+ edited 2
+ $EMPTY
+ edited 3
+ EOF
GIT_AUTHOR_NAME="Rebase Author" &&
GIT_AUTHOR_EMAIL="rebase.author@example.com" &&